1. 02 Mar, 2002 2 commits
    • Owen Taylor's avatar
      Switch style of stamp file usage. · f832e348
      Owen Taylor authored
      Sat Mar  2 13:26:58 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/Makefile.am: Switch style of stamp file usage.
      
              * gtk/Makefile.am gtk/typeutils.[ch]: Switch all the exported
              enumeration/fags TYPE variables over to macros for get_type() functions,
              for lazy definition and to get rid of expensive relocations.
      
              * gtk/gtkiconfactory.[ch] gtk/gtkselection.[ch] gtk/gtkstyle.[ch]
              gtk/gtktextiter.[ch] gtk/gtktexttag.[ch] gtk/gtktreemodel.[ch]
              gtk/gtktypeutils.[ch] gtk/gtkwidget.[ch]: Switch boxed type
              definitions over manually coded get_type() functions.
      
              * gtk/gtk.def: Updates for above
      
              * gtk/{genmarshal.pl,makeenums.awk,makeenums.h,maketypes.awk}:
              Remove from CVS, no longer used.
      
              * configure.in: Remove checks for awk.
      f832e348
    • Tim Janik's avatar
      fix typo. · 688c3bf0
      Tim Janik authored
      Sat Mar  2 04:44:10 2002  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkaccelgroup.c (gtk_accel_group_connect_by_path): fix typo.
      688c3bf0
  2. 01 Mar, 2002 12 commits
    • Kristian Rietveld's avatar
      set first_cell to FALSE after first iteration · aa83195a
      Kristian Rietveld authored
      Fri Mar  1 23:59:35 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_get_size): set
              first_cell to FALSE after first iteration
      
              * gtk/gtktreeview.c (validate_visible_area): reduce usage of
              GTK_RBNODE_GET_HEIGHT, check for node != NULL,
              (gtk_tree_view_top_row_to_dy): remove call to gtk_adjustment_changed
              (gtk_tree_view_search_iter): select iter after scrolling
      aa83195a
    • Tor Lillqvist's avatar
      Remove unneeded Win32 stuff inside #ifdef G_OS_WIN32. (Leftover from when · 58f74422
      Tor Lillqvist authored
      2002-03-02  Tor Lillqvist  <tml@iki.fi>
      
      	* gtk/gtkitemfactory.c: Remove unneeded Win32 stuff inside #ifdef
      	G_OS_WIN32. (Leftover from when gtkitemfactory.c handled files.)
      58f74422
    • Tor Lillqvist's avatar
      gdk/gdkkeys.c (gdk_keyval_convert_case) If the keyval to be converted is · d237e855
      Tor Lillqvist authored
      2002-03-01  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/gdkkeys.c (gdk_keyval_convert_case)
      	* gdk/x11/gdkkeys-x11.c (gdk_keyval_convert_case): If the keyval
      	to be converted is one of those that consist of a Unicode
      	character plus our special flag bit, use the
      	g_unichar_to{lower,upper} functions (Bug#73112).
      
      	* gdk/gdkkeys.c (gdk_keyval_convert_case): Drop the #ifdefs for
      	the GDK keysym symbols. As we include gdkkeysyms.h, we know they
      	are there. And if GDK keysyms some day are added/removed, this
      	function needs changes, too, anyway.
      d237e855
    • Owen Taylor's avatar
      Fix some reported (but not significant) UMR's from purify. (#73160, Morten · b924594e
      Owen Taylor authored
      Fri Mar  1 17:00:28 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gdk/gdkpolyreg-generic.c: Fix some reported (but not significant)
      	UMR's from purify. (#73160, Morten Welinder)
      b924594e
    • Owen Taylor's avatar
      Initialize the scrollbar spacing variable in the class to -1, and then · a6774264
      Owen Taylor authored
      Fri Mar  1 16:48:19 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkscrolledwindow.c: Initialize the scrollbar spacing
      	variable in the class to -1, and then take that to mean
      	"default" (3) rather than putting 3 in the class directly.
      	This gives us some wiggle room to make it a per-instance
      	rather than a per-class property later.
      a6774264
    • jacob berkman's avatar
      replace uses of test -e with more portable test -f · 3842f2f1
      jacob berkman authored
      2002-03-01  jacob berkman  <jacob@ximian.com>
      
      	* Makefile.am (install-data-hook):
      	(dist-hook): replace uses of test -e with more portable test -f
      3842f2f1
    • Owen Taylor's avatar
      Don't delete forward across line boundaries when in overwrite mode. · 206119c9
      Owen Taylor authored
      Fri Mar  1 14:49:35 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtktextview.c (gtk_text_view_commit_text): Don't delete
      	forward across line boundaries when in overwrite mode.
      	(#73145, reported by Ettore Perazzoli)
      206119c9
    • Owen Taylor's avatar
      Fix signed-unsigned error that was accidentally causing negative values to · f4c06611
      Owen Taylor authored
      Fri Mar  1 10:31:14 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtknotebook.c (gtk_notebook_reorder_child):
      	Fix signed-unsigned error that was accidentally causing
      	negative values to append, do it intentionally. Fix docs
      	to say that negative values append. (Alexey A. Malyshev,
      	#73108)
      f4c06611
    • Alexey Malyshev's avatar
      gtk+/gtk/gtkitemfactory.c fixed a little type in docs for · 30e9527d
      Alexey Malyshev authored
      2002-03-01 Alexey Malyshev <maa@sparc.spb.su>
      
              * gtk+/gtk/gtkitemfactory.c
      	fixed a little type in docs for gtk_notebook_set_show_border()
      30e9527d
    • Owen Taylor's avatar
      Really make it work for paths with underline accelerators. (#69247) · 409fb50c
      Owen Taylor authored
      Fri Mar  1 09:05:19 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkitemfactory.c (gtk_item_factory_delete_entries):
              Really make it work for paths with underline accelerators. (#69247)
      409fb50c
    • Havoc Pennington's avatar
      free the tab array for custom tabs, reported by Paolo Maggi #72980 · 8836674a
      Havoc Pennington authored
      2002-02-28  Havoc Pennington  <hp@pobox.com>
      
      	* gtk/gtktextview.c (gtk_text_view_finalize): free the tab array
      	for custom tabs, reported by Paolo Maggi #72980
      8836674a
    • Owen Taylor's avatar
      include gdkkeysysms.h if compiling gdk_keyval_convert_case. · fce84d05
      Owen Taylor authored
      Thu Feb 28 19:55:01 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkkeys.c: include gdkkeysysms.h if
              compiling gdk_keyval_convert_case.
      
              * gtk/gtkmenubar.c (gtk_menu_bar_cycle_focus): Implement
              <Control>Tab <Control><Shift>Tab to cycle between
              all menu bars in a toplevel once one is up.
      
              * tests/testgtk.c: Add a second menubar, this
              example is already full of crack anyways.
      
              * gtk/gtkmenushell.c (gtk_menu_shell_key_press): Padd
              unhandled events up to the parent menu shell.
      
              * gtk/gtkmenuitem.c (gtk_menu_item_select_timeout): Only
              pop up the menu if the parent menu shell is still active.
      
              * gtk/gtkcontainer.[ch] (_gtk_container_focus_sort): Add a
              old_focus argument, export privately.
      fce84d05
  3. 28 Feb, 2002 7 commits
    • Darin Adler's avatar
      Add missing NULL check. · 8b26dc2c
      Darin Adler authored
      	* gtk/gtkfilesel.c: (open_new_dir): Add missing NULL check.
      8b26dc2c
    • Tor Lillqvist's avatar
      Remove the event_mask, it is now in GdkWindowObject. · 8beceb38
      Tor Lillqvist authored
      2002-03-01  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/gdkwindow-win32.h (struct _GdkWindowImplWin32): Remove
      	the event_mask, it is now in GdkWindowObject.
      
      	* gdk/win32/gdkwindow-win32.c: Change accordingly. Set the
      	GDK_STRUCTURE_MASK in gdk_window_set_events(), as it is always set
      	in gdk_window_new(), too. (Bug#72921)
      
      	* gdk/win32/gdkevents-win32.c: Change accordingly here, too.
      	(vk_from_char): New function, calculates the virtual keycode
      	corresponding to the char in a WM_CHAR message.
      	(build_keypress_event, build_keyrelease_event): Use it.
      	(build_keypress_event): Call ImmReleaseContext() after using the
      	input context. This might plug a memory or resource leak.
      	(build_key_event_state): Remove #if 0 code.
      	(gdk_event_translate): Actually, it would be preferrable to always
      	handle just the WM_KEYDOWN and WM_KEYUP messages, not WM_CHAR at
      	all, and thus drop the contorted logic with ignore_wm_char etc.
      
      	* gdk/win32/gdkkeys-win32.c: (gdk_keymap_get_entries_for_keyval):
      	Debugging output.
      	(gdk_keymap_translate_keyboard_state): Return correct value. (But
      	_gtk_key_hash_lookup() doesn't check the return value...)
      8beceb38
    • Owen Taylor's avatar
      Initialize private->event_mask from attributes we retrieved for the · 3b906a9c
      Owen Taylor authored
      Thu Feb 28 14:49:08 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkwindow-x11.c (gdk_window_foreign_new): Initialize
              private->event_mask from attributes we retrieved for
              the window.
      3b906a9c
    • Havoc Pennington's avatar
      This change went in a week ago, but I apparently didn't commit the · e9af640c
      Havoc Pennington authored
      ChangeLog entry.
      
      2002-02-22  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextbuffer.c (save_range): change gravity of start/end
      	marks so that text added at either end of the range doesn't end up
      	inside the range.
      	(gtk_text_buffer_real_insert_range): fix to handle pasting a range
      	into itself.
      e9af640c
    • Sven Neumann's avatar
      beautified configure --help output. · 54dbcdab
      Sven Neumann authored
      2002-02-28  Sven Neumann  <sven@gimp.org>
      
      	* configure.in: beautified configure --help output.
      54dbcdab
    • Tor Lillqvist's avatar
      Move bdfcursor.c from libgdk_win32_la_SOURCES to EXTRA_DIST. · 3244b86d
      Tor Lillqvist authored
      2002-02-28  Tor Lillqvist  <tml@iki.fi>
      
      	* gdk/win32/Makefile.am: Move bdfcursor.c from
      	libgdk_win32_la_SOURCES to EXTRA_DIST.
      
      	* gdk/win32/gdkgc-win32.c (gdk_win32_colormap_color_pack): In the
      	bitmap case, use just the LSB of the pixel value. Does this match
      	X11 semantics? Or should it be pixel!=0?
      3244b86d
    • Owen Taylor's avatar
      ed Feb 27 19:16:50 2002 Owen Taylor <otaylor@redhat.com> · 7ea17ce7
      Owen Taylor authored
              * gdk/x11/gdkwindow-x11.c (gdk_window_new):
              * gdk/x11/gdkwindow-x11.c (gdk_window_get_events):
              * gdk/x11/gdkwindow-x11.c (gdk_window_set_events):
              * gdk/win32/gdkwindow-win32.c (gdk_window_set_events):
              * gdk/win32/gdkwindow-win32.c (gdk_window_new):
              * gdk/gdkwindow.h (struct _GdkWindowObject):
              * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_events):
              Save the window's event mask in window->event_mask.
      
              * gdk/gdkwindow.c (gdk_window_process_updates_internal): Only
              generate expose events if GDK_EXPOSE_MASK is included
              window->event_mask. (#54506)
      7ea17ce7
  4. 27 Feb, 2002 19 commits
    • Owen Taylor's avatar
      Allow focus-change events to be sent to unrealized widgets; they aren't · 531861fb
      Owen Taylor authored
      Wed Feb 27 18:50:29 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkwidget.c (gtk_widget_event): Allow focus-change
              events to be sent to unrealized widgets; they aren't
              really normal events in that they have anything to
              do with widget->window. (#72914)
      531861fb
    • Owen Taylor's avatar
      Split big VARIABLES variable that was causing overlong lines into 6 · c16da246
      Owen Taylor authored
      Wed Feb 27 18:39:25 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/stock-icons/Makefile.am: Split big VARIABLES variable
              that was causing overlong lines into 6 variables with 20
              in each one.
      c16da246
    • Owen Taylor's avatar
      Mark <Control>, <Shift>, <Release>, <Alt> for translation. · 485c2a53
      Owen Taylor authored
      Wed Feb 27 18:01:03 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkaccellabel.c (gtk_accelerator_name) po/POTFILES.in: Mark
              <Control>, <Shift>, <Release>, <Alt> for translation.
      
              * gtk/gtkfontsel.c: Mark PREVIEW_TEXT for translation.
              (Vlad Harchev, #53223)
      485c2a53
    • Owen Taylor's avatar
      if CAN_FOCUS reserve focus_line_width + focus_line_pad extra space and · 9cbf3799
      Owen Taylor authored
      Wed Feb 27 17:32:09 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkrange.c (gtk_range_get_props): if CAN_FOCUS
              reserve focus_line_width + focus_line_pad extra
              space and draw the focus in that space. #72027.
      9cbf3799
    • Soeren Sandmann's avatar
      minor code cleanup · 27b1d120
      Soeren Sandmann authored
      Wed Feb 27 23:02:55 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkhandlebox.c (gtk_handle_box_realize): minor code cleanup
      27b1d120
    • Owen Taylor's avatar
      Don't reserve space for border when the shadow type for the menubar is · 90b7a9f6
      Owen Taylor authored
      Wed Feb 27 14:58:12 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkmenubar.c (gtk_menu_bar_size_request/allocate):
              Don't reserve space for border when the shadow type
              for the menubar is "none". (#61843)
      
              * gtk/gtkmenubar.c (gtk_menu_bar_size_allocate): Fix
              offset for right-justified menu items.
      90b7a9f6
    • Owen Taylor's avatar
      Go back to old style of drawing children over the bevel. (#58615) · 0be9b6fb
      Owen Taylor authored
      Wed Feb 27 14:45:21 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Go
              back to old style of drawing children over the bevel.
              (#58615)
      0be9b6fb
    • Owen Taylor's avatar
      Add ko and zh to the locales where this is the default. · 39fc3c9a
      Owen Taylor authored
      Wed Feb 27 14:08:26 2002  Owen Taylor  <otaylor@redhat.com>
      
              * modules/input/imxim.c: Add ko and zh to the locales
              where this is the default.
      39fc3c9a
    • Owen Taylor's avatar
      Register all stock icons "unscaled" so that we don't have icons only · e6f466c1
      Owen Taylor authored
      Wed Feb 27 12:34:21 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkiconfactory.c: Register all stock icons
      	"unscaled" so that we don't have icons only available
      	at some sizes. (#68896)
      
      Wed Feb 27 11:59:05 2002  Owen Taylor  <otaylor@redhat.com>
      
      	Some ASCII vs. locale fixes from Darin Adler (#55837)
      
      	* gtk/gtkcombo.c (gtk_combo_find): Implement real
      	case-insensitive comparison using g_utf8_casefold().
      
      	* gtk/gtkaccellabel.c (gtk_accel_label_refetch): Fix
      	assignment of gunichar to char by replacing g_unichar_totitle
      	with g_ascii_toupper ... the contents would only be ascii
      	here anyways.
      
      	* gdk/x11/gdkim-x11.c (_gdk_x11_initialize_locale)
      	* gtk/gtkfontsel.c (gtk_font_selection_show_available_fonts):
      	Replace a calls to g_strcasecmp() with g_ascii_strcasecmp().
      e6f466c1
    • Hans Breuer's avatar
      new file · bc94033d
      Hans Breuer authored
      2002-02-27  Hans Breuer  <hans@breuer.org>
      
      	* demos/gtk-demo/makefile.msc.in : new file
      
      	* gdk-pixbuf/gtk-pixbuf.rc.in : new file to include
      	  version resource
      	* gdk-pixbuf/makefile.msc : create and use gdk-pixbuf.res
      
      	* gdk/win32/gdkkeys-win32.c : handle undefined LANG_URDU,
      	(gdk_keyval_name) : fix endless looping
      
      	* gtk/gtkfilesel.c : translate_win32_path() static
      	* gtk/queryimmodules : print_escaped(), query_module() static
      
      	* gtk/makefile.msc.in : added gtkkeyhash, build gtk-win32.res
      
      	* gtk/stock-icons/makefile.msc : regenerated from directory
      	listing (almost all filenames changed)
      bc94033d
    • Owen Taylor's avatar
      After computing the clamped value, actually set it. (#62639, Sergey · 20eda0e6
      Owen Taylor authored
      Wed Feb 27 10:34:46 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkrange.c (gtk_range_set_range): After computing
      	the clamped value, actually set it. (#62639, Sergey Kuzminov)
      20eda0e6
    • Owen Taylor's avatar
      Clean up the code so < 0 == end wasn't just a side effect, remove most of · a504e62e
      Owen Taylor authored
      Tue Feb 26 22:22:37 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkbox.c (gtk_box_reorder_child): Clean up
      	the code so < 0 == end wasn't just a side effect,
      	remove most of the manual linked list manipulation
      	code in favor of g_list_* functions.
      
      Tue Feb 26 22:01:59 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/tmpl/gtkbox.sgml: Fix docs to correspond to the code -
      	negative @position indicates the end of the list.
      a504e62e
    • Owen Taylor's avatar
      Remove these files from CVS so we more-or-less current versions from · 0205a7bd
      Owen Taylor authored
      Tue Feb 26 21:44:01 2002  Owen Taylor  <otaylor@redhat.com>
      
              * config.status config.guess: Remove these files
              from CVS so we more-or-less current versions from
              automake --add-missing. (Reported by Finlay Dobbie,
              #60342)
      
              * gdk/gdkkeyuni.c: Shouldn't map KP_Enter to '\n',
              or KP_Tab to \t' since we don't map the corresponding
              main keyboard characters in that way. (#61561,
              Padraig O'Briain)
      0205a7bd
    • Owen Taylor's avatar
      Shouldn't map KP_Enter to '\n', or KP_Tab to \t' since we don't map the · 807336c7
      Owen Taylor authored
      Tue Feb 26 21:35:31 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkkeyuni.c: Shouldn't map KP_Enter to '\n',
              or KP_Tab to \t' since we don't map the corresponding
              main keyboard characters in that way. (#61561,
              Padraig O'Briain)
      807336c7
    • Owen Taylor's avatar
      Call gtk_combo_set_popdown_strings() in case the combo is up currently. · a90baa83
      Owen Taylor authored
      Tue Feb 26 19:45:29 2002  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/gtkcombo.c (gtk_combo_set_popdown_strings):
      	Call gtk_combo_set_popdown_strings() in case
      	the combo is up currently. (#63535, Skip Montaro)
      a90baa83
    • Owen Taylor's avatar
      Switch control-home/end and home/end with the idea that scrolled windows · ff16981d
      Owen Taylor authored
      Tue Feb 26 19:38:14 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init):
              Switch control-home/end and home/end with
              the idea that scrolled windows more typically contain
              vertical sets of controls and to correspond to the bindings
              in GtkTreeView.
      ff16981d
    • Owen Taylor's avatar
      Chain up before drawing the scale values so that the number is drawn in · 2b33da52
      Owen Taylor authored
      Tue Feb 26 19:32:42 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtk[hv]vscale.c (gtk_[hv]scale_expose): Chain
              up before drawing the scale values so that the number
              is drawn in the right place instead of one step
              back. (#61743, patch from Satyajit Kanungo)
      2b33da52
    • Owen Taylor's avatar
      Make sure Page_Up, Page_Down get those names, not Prior, Next. · 0fd671ae
      Owen Taylor authored
      Tue Feb 26 19:16:28 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/win32/gdkkeys-win32.c (gdk_keyval_name):
              * gdk/x11/gdkkeys-x11.c (gdk_keyval_name):
              Make sure Page_Up, Page_Down get those names, not Prior,
              Next.
      0fd671ae
    • Owen Taylor's avatar
      ue Feb 26 18:58:49 2002 Owen Taylor <otaylor@redhat.com> · df915120
      Owen Taylor authored
              * gtk/gtkaccelgroup.c (gtk_accelerator_set_default_mod_mask):
              OR in the three default modifiers to any value passed
              in by the caller, so that the caller won't break the
              the default bindings. (#70142, Jody Goldberg, though he
              wasn't in favor of this particular way of solving it.)
      df915120