1. 07 Nov, 2002 1 commit
    • Owen Taylor's avatar
      Add ::screen-changed signal. · 100286ac
      Owen Taylor authored
      Thu Nov  7 12:53:08 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkwidget.[ch] gtk/gtkwindow.c gtk/gtkinvisible.c:
              Add ::screen-changed signal.
      
              * gtk/gtkfontsel.c gtk/gtktoolbar.c: Use ::screen-changed
              signal to simplify logic.
      100286ac
  2. 03 Nov, 2002 3 commits
    • Kristian Rietveld's avatar
      Bah, and of course I broke something ... · 66cefd1c
      Kristian Rietveld authored
      Sun Nov  3 21:26:20 2002  Kristian Rietveld  <kris@gtk.org>
      
              Bah, and of course I broke something ...
      
              * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): fix
              up the mess I caused with my commit of Oct 23 fixing #50263, things
              should be fine now.
      66cefd1c
    • Owen Taylor's avatar
      Remove check for winsock.h since it might show up on Linux+Wine. Instead · 42bd8a2a
      Owen Taylor authored
      Sun Nov  3 13:03:29 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkfilesel.c configure.in: Remove check for
              winsock.h since it might show up on Linux+Wine.
              Instead just conditionalize of G_OS_WIN32.
              (#97396, Gaute Lindkvist)
      42bd8a2a
    • Kristian Rietveld's avatar
      took out the useless check for refs->list (#97353, reported by Morten · ec9e55b7
      Kristian Rietveld authored
      Sun Nov  3 01:39:20 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreemodel.c (release_row_references): took out the useless
              check for refs->list (#97353, reported by Morten Welinder).
      
              * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size):
              check if width isn't zero instead of calc_width ...
      ec9e55b7
  3. 02 Nov, 2002 5 commits
    • Kristian Rietveld's avatar
      remove the second ref command on the child_model, we only have to ref it · d52077d6
      Kristian Rietveld authored
      Sat Nov  2 23:48:52 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): remove
              the second ref command on the child_model, we only have to ref it
              once here. (#96851, reported by Jorn Baayen).
      d52077d6
    • Matthias Clasen's avatar
      Automatic RTL flipping for handleboxes. · 1fd7ddbd
      Matthias Clasen authored
      1fd7ddbd
    • Owen Taylor's avatar
      Add startup notification hooks - mostly based on patch by Havoc Pennington · accc3a33
      Owen Taylor authored
      Sat Nov  2 00:22:33 2002  Owen Taylor  <otaylor@redhat.com>
      
              Add startup notification hooks - mostly based on patch
              by Havoc Pennington in #96772.
      
              * gdk/gdk.h gdk/x11/gdkdisplay-x11.c
              gdk/{win32,linux-fb}/gdkmain-*.c: (gdk_notify_startup_complete):
              new function that indicates an application has finished starting
              up.
      
              * gdk/x11/gdkmain-x11.c gdk/x11/gdkdisplay-x11.c
              (_gdk_windowing_set_default_display): store value of
              DESKTOP_STARTUP_ID on the default screen, and clear it from the
              environment.
      
              * gdk/x11/gdkdisplay-x11.c:
              Set _NET_STARTUP_ID hint on display's group leader window.
      
              * gtk/gtkwindow.c (gtk_window_set_auto_startup_notification):
              function to toggle whether we automatically broadcast that we've
              started up, after mapping the first toplevel window.
              (gtk_window_map): call gdk_screen_notify_startup_complete() by
              default, unless enabled by above.
      
              * gtk/gtkmain.c gtk/gtkcombo.c gtk/gtktoolbar.c:
              Couple of warning fixes.
      accc3a33
    • Owen Taylor's avatar
      Add a mnemonic to the "selection" label. (More of #74267) · 39a5a723
      Owen Taylor authored
      Fri Nov  1 21:03:59 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkfilesel.c: Add a mnemonic to the "selection"
              label. (More of #74267)
      
              * configure.in: Version 2.1.2
      
              * NEWS: Updates.
      39a5a723
    • Matthias Clasen's avatar
      00943af8
  4. 31 Oct, 2002 3 commits
    • Owen Taylor's avatar
      Fix from Nam SungHyun for crashes when tooltips->active_tips_data is NULL. · 907ac776
      Owen Taylor authored
      Thu Oct 31 17:41:12 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktooltips.c (gtk_tooltips_update_screen): Fix
              from Nam SungHyun for crashes when tooltips->active_tips_data
              is NULL.
      907ac776
    • Owen Taylor's avatar
      Add a --screen option for setting the default screen. (Based on a patch · 550bf181
      Owen Taylor authored
      Thu Oct 31 12:40:39 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdk.[ch] gdk/gdkglobals.c gdk/gdkinternals.h
              gdk/{x11,win32,linux-fb}/gdkscreen-{x11,win32,linux-fb}.c:
              Add a --screen option for setting the default screen.
              (Based on a patch from Balamurali Viswanathan, #81145)
      
              * gdk/gdk.c gdkdisplay.h gtk/gtkmain.c: Add
              gdk_display_open_default_libgtk_only(), so gtk_init_check()
              and gdk_init_check() can share the same behavior w.r.t.
              --screen.
      
              * gdk/gdk.[ch]: Make gdk_get_display_arg_name() G_CONST_RETURN.
      
              * gdk/x11/gdkselection-x11.c (gdk_selection_property_get):
              Suppress a spurious warning.
      
              * tests/testgtkrc: Remove someleft-over commented out
              includes that could be confusing.
      550bf181
    • Padraig O'Briain's avatar
      Move g_free() call to before return. · 16b3f886
      Padraig O'Briain authored
      * gtk/gtktoolbar.c (gtk_toolbar_insert_stock): Move g_free()
      call to before return.
      16b3f886
  5. 29 Oct, 2002 2 commits
  6. 27 Oct, 2002 1 commit
    • Kristian Rietveld's avatar
      This fixes a scrolling bug. Shouldn't cause problems, but you never know · ca633e17
      Kristian Rietveld authored
      Sun Oct 27 15:58:30 2002  Kristian Rietveld  <kris@gtk.org>
      
              This fixes a scrolling bug. Shouldn't cause problems, but you
              never know ... (#81627, testcase by Timo Sirainen).
      
              * gtk/gtktreeview.c (validate_visible_area): add a temporary
              implemention for non use_align, always update dy and ->top_row
              if we scroll here,
              (gtk_tree_view_clamp_node_visible): reimplement using
              _scroll_to_cell (#73895).
      ca633e17
  7. 25 Oct, 2002 7 commits
  8. 23 Oct, 2002 2 commits
    • Kristian Rietveld's avatar
      s/NULL/0/ on the g_signal_emit lines to fix up yesterdays commit (reported · 1cdd4cd2
      Kristian Rietveld authored
      Wed Oct 23 17:06:02 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreemodel.c: s/NULL/0/ on the g_signal_emit lines to
              fix up yesterdays commit (reported by Morten Welinder).
      1cdd4cd2
    • Owen Taylor's avatar
      When popping up the list without any selected items, hack the focus on the · 3d4c27d0
      Owen Taylor authored
      Tue Oct 22 20:02:22 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkcombo.c: When popping up the list without
              any selected items, hack the focus on the list to
              avoid triggering a bug in GtkList when clicking
              on focused-but-not-selected items (#86700,
              Zimler Attila, Matthias Clasen) and to keep
              GtkWindow from selecting the first item.
      
              * tests/testgtk.c (create_list): Make the initial
              setting of the selection mode correspond to the option
              menu.
      3d4c27d0
  9. 22 Oct, 2002 8 commits
    • Kristian Rietveld's avatar
      Another feature to create truly ugly TreeViews!: style properties for the · ecb42dc7
      Kristian Rietveld authored
      Wed Oct 23 01:03:43 2002  Kristian Rietveld  <kris@gtk.org>
      
              Another feature to create truly ugly TreeViews!: style properties
              for the even/odd colors used for row hinting. (#71595, reported
              by Owen Taylor).
      
              * gtk/gtktreeview.c (gtk_tree_view_class_init): add even_row_color
              and odd_row_color style properties.
      
              * gtk/gtkstyle.c (get_darkened_gc): support darken_count == 0 case,
              (gtk_default_draw_flat_box): rework cell coloring code to support
              user-provided even/odd row colors.
      
      Wed Oct 23 01:01:52 2002  Kristian Rietveld  <kris@gtk.org>
      
              Cache signal IDs to speed up signal emission. This is a good speedup
              because GtkTreeModel emits a big number of signals.
      
              * gtk/gtktreemodel.c (gtk_tree_model_base_init): save IDs returned
              by g_signal_new,
              (gtk_tree_model_row_changed): use g_signal_emit instead of
              g_signal_emit_by_name,
              (gtk_tree_model_row_inserted): ditto,
              (gtk_tree_model_row_has_child_toggled): ditto,
              (gtk_tree_model_row_deleted): ditto,
              (gtk_tree_model_rows_reordered): ditto.
      
      Wed Oct 23 00:56:15 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeselection.c (model_changed): new function,
              (gtk_tree_selection_selected_foreach): monitor changes in the model,
              bail out if the model has been changed from the foreach func.
              (#50263, reported by Havoc Pennington).
      
              * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
              free anchor if applicable (#94868, reported and testcase provided by
              Daniel Elstner).
      ecb42dc7
    • Owen Taylor's avatar
      Multihead safety fixes, handle displays being closed. (#81651, based on · f1b8a1ce
      Owen Taylor authored
      Tue Oct 22 16:37:12 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktooltips.c: Multihead safety fixes, handle
              displays being closed. (#81651, based on patch
              from Erwann Chenede)
      
              * gtk/gtktoolbar.c (gtk_toolbar_init): Fix typo
              from the last commit.
      f1b8a1ce
    • Owen Taylor's avatar
      Fix handling of getting the default style/icon size from the correct · 8042766f
      Owen Taylor authored
      Tue Oct 22 15:55:08 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktoolbar.c: Fix handling of getting the
              default style/icon size from the correct
              GtkSettings. (#82184, reported by Vitaly Tishkov,
              help from Soeren Sandmann)
      8042766f
    • Owen Taylor's avatar
      Actively monitor the screen of the parent. (#80281) · 745f20a6
      Owen Taylor authored
      Tue Oct 22 15:32:31 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkwindow.c: Actively monitor the screen of the
              parent. (#80281)
      
              * gtk/gtkentry.c: Fix missing prototype from the
              last commit.
      745f20a6
    • Owen Taylor's avatar
      Reset the layout, since it holds a reference to the font on a particular · 720d59d4
      Owen Taylor authored
      Tue Oct 22 15:46:09 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkentry.c (gtk_entry_unrealize): Reset the
              layout, since it holds a reference to the font on
              a particular screen.
      720d59d4
    • Owen Taylor's avatar
      Include config.h (#96441, Morten Welinder) · 0bfa8fe5
      Owen Taylor authored
      Tue Oct 22 15:13:59 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkimmulticontext.c: Include config.h
              (#96441, Morten Welinder)
      0bfa8fe5
    • Owen Taylor's avatar
      When compiling our on fnmatch.c, #define fnmatch _gtk_fnmatch (#92890, · a0263ec8
      Owen Taylor authored
      Tue Oct 22 15:03:41 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/fnmatch.h: When compiling our on fnmatch.c,
              #define fnmatch _gtk_fnmatch (#92890, Jacob Berkman)
      a0263ec8
    • Matthias Clasen's avatar
      It is called GtkStatusbar, not GtkStatusBar. This was changed accidentally · 18518c09
      Matthias Clasen authored
      	* gtk/gtkstatusbar.c (gtk_statusbar_get_type):
      	(gtk_statusbar_class_init): It is called GtkStatusbar, not
      	GtkStatusBar. This was changed accidentally during deprecation
      	cleanup and caused links in the API docs to break.  (#96390)
      18518c09
  10. 21 Oct, 2002 1 commit
    • Owen Taylor's avatar
      Return "" for entry->invisible_char == 0, otherwise N copies of · f95cd8a3
      Owen Taylor authored
      Mon Oct 21 14:04:39 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkentry.c (gtk_entry_get_public_chars): Return
              "" for entry->invisible_char == 0, otherwise N copies
              of entry->invisible_char. (#95486, Vitaly Tishkov)
      
              * gtk/gtkentry.c: Fix a bunch of places where entry->text
              instead of layout->text was being used for computation
              of offsets/indices in the layout. Using layout->text
              is necessary because when the entry is invisible, it
              doesn't correspond to entry->text.
      f95cd8a3
  11. 20 Oct, 2002 2 commits
    • Soeren Sandmann's avatar
      gtkmenu.c, gtkmenubar.c, gtkmenuitem.c, gtkmenushell.c, gtkmenushell.h, · 4b08e835
      Soeren Sandmann authored
      Sun Oct 20 23:58:03 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtkmenu.c, gtkmenubar.c, gtkmenuitem.c, gtkmenushell.c,
      	gtkmenushell.h, gtkmenushell.h
      
      	- make the delay before submenus appear below menu bars a
      	  GtkSetting
      	- make the delay before submenus pops up a GtkSetting
      	- make the stay up triangle slightly larger
      	- don't pop up the first submenu immediately.
      	- make the default delay for submenus 225 ms, and 0 for menubars.
      	- make the default delay before popping down inside the stay-up
      	  triangle 1000 ms
      
      	Fixes #74950
      4b08e835
    • Owen Taylor's avatar
      Add a scrollbar_spacing style property (#81396, based on a patch from · 6a82d4c6
      Owen Taylor authored
      Sun Oct 20 14:58:02 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkscrolledwindow.c (gtk_scrolled_window_class_init):
              Add a scrollbar_spacing style property (#81396, based
              on a patch from Anders Carlsson)
      6a82d4c6
  12. 18 Oct, 2002 2 commits
    • Owen Taylor's avatar
      Reset use_text_format to %TRUE for a %NULL text string. (#94157, once · ac98d231
      Owen Taylor authored
      Fri Oct 18 15:38:50 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkprogressbar.c (gtk_progress_bar_set_text):
              Reset use_text_format to %TRUE for a %NULL text string.
              (#94157, once again).
      ac98d231
    • Owen Taylor's avatar
      Fix use of uninitialized variable. · 30faa38a
      Owen Taylor authored
      Thu Oct 17 17:17:05 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkcheckbutton.c (gtk_check_button_size_request):
              Fix use of uninitialized variable.
      
      Thu Oct 17 14:38:37 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkaccellabel.c (gtk_accel_label_expose_event):
              Align the baseline of the accelerator label with the
              first baseline of the main label of the menu item. (#76593)
      
      Wed Oct 16 18:25:24 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkevents-x11.c (translate_key_event):
              Use gdk_keymap_translate_keyboard_state() rather than
              XLookupString() to get the keysymbol, since XLookupString
              can confuse the input method handling. (#93575)
      
              * gdk/x11/gdkkeys-x11.c: Rewrite the handling of
              key translation for the non-XKB case to properly
              handle Shift_Lock, Caps_Lock, Num_Lock according
              to the Xlib spec. (#67066)
      30faa38a
  13. 17 Oct, 2002 3 commits
    • Havoc Pennington's avatar
      fix compiler warnings · 74e51bc1
      Havoc Pennington authored
      2002-10-17  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkwindow.c (gtk_window_compute_configure_request): fix
      	compiler warnings
      74e51bc1
    • Soeren Sandmann's avatar
      fix typo to make it compile · fc2b515e
      Soeren Sandmann authored
      Thu Oct 17 22:37:57 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* gtk/gtkwindow.c (get_center_monitor_of_window): fix typo to make
      	it compile
      fc2b515e
    • Havoc Pennington's avatar
      add g_return_if_fail for monitor number <= 0 · 727eb8af
      Havoc Pennington authored
      2002-10-16  Havoc Pennington  <hp@redhat.com>
      
      	* gdk/x11/gdkscreen-x11.c (gdk_screen_get_monitor_geometry): add
      	g_return_if_fail for monitor number <= 0
      
      	* gtk/gtkmenu.c (gtk_menu_position): handle case where pointer
      	is outside the screen.
      
      	* gtk/gtkwindow.c (get_monitor_center): factor out
      	the code to position a window in center
      	(gtk_window_compute_configure_request): use here
      	(gtk_window_constrain_position): use here, the
      	code here wasn't multihead-aware
      
      	* gdk/x11/gdkevents-x11.c (get_real_window): function to
      	return the window the event describes, rather than the window
      	that received the event.
      	(gdk_event_translate): use result of that function for
      	filling in GdkEvent::window, which only matters for
      	MapNotify/UnmapNotify and ConfigureNotify, in practice.
      
      	Unbreaks various things using SubstructureNotifyMask.
      727eb8af