1. 30 Jun, 2005 1 commit
    • Matthias Clasen's avatar
      Handle broken grabs. · 87cafe5b
      Matthias Clasen authored
      2005-06-29  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkbutton.c (gtk_button_grab_broken): Handle broken
              grabs.
      
              * gtk/gtkrange.c (gtk_range_grab_broken): Handle broken
              grabs.
      
              * gdk/gdkevents.h: Add a boolean to specify wether the broken
              grab was implicit.
      
              * gdk/x11/gdkdisplay-x11.c (gdk_display_pointer_is_grabbed):
              As the documentation states, don't return TRUE for
              implicit grabs.
      
              * gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
              a boolean field to store wether a pointer grab is implicit.
      
              * gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_button_event):
              Track implicit grabs.
      
              * gdk/x11/gdkevents-x11.c (gdk_event_translate): Call
              _gdk_xgrab_check_button_event for button events.
      87cafe5b
  2. 28 Jun, 2005 2 commits
  3. 27 Jun, 2005 7 commits
    • Matthias Clasen's avatar
      Ignore GrabBroken events which are caused by overgrabbing inside the · b2343762
      Matthias Clasen authored
      2005-06-27  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Ignore
      	GrabBroken events which are caused by overgrabbing inside
      	the application; menus rely on these for their operation.
      
      	* gdk/gdkevents.h (struct _GdkEventGrabBroken): Add a
      	grab_window field.
      
      	* gdk/win32/gdkevents-win32.c (gdk_event_translate): Set
      	grab_window to NULL when generating GrabBroken events for
      	WM_KILLFOCUS messages.
      
      	* gdk/x11/gdkmain-x11.c (_gdk_xgrab_check_unmap)
      	(_gdk_xgrab_check_destroy): Set grab_window to NULL when
      	generating GrabBroken events when the grab window becomes
      	unviewable or is destroyed.
      
      	* gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
      	Generate GrabBroken events when overriding a grab inside
      	the application. In this case, set grab_window to the new
      	grab_window.
      b2343762
    • Matthias Clasen's avatar
      Continue to activate even if we can't grab the keyboard. · f49eab12
      Matthias Clasen authored
      2005-06-27  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkbutton.c (gtk_real_button_activate): Continue
      	to activate even if we can't grab the keyboard.
      	(gtk_button_finish_activate): Only ungrab when we have
      	a keyboard grab.  (#172998, William Jon McCann)
      f49eab12
    • Matthias Clasen's avatar
      Cancel menus when they are grab-shadowed by something thats not a submenu. · ddd27f21
      Matthias Clasen authored
      2005-06-27  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkmenu.c (gtk_menu_grab_notify): Cancel menus when
              they are grab-shadowed by something thats not a
              submenu.  (#145416, Euan MacGregor)
      ddd27f21
    • Owen Taylor's avatar
      Fix indentation. · 3b1269f5
      Owen Taylor authored
      2005-06-27  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtk[hv]ruler.c (gtk_[hv]ruler_draw_ticks):
              Fix indentation.
      3b1269f5
    • Kjartan Maraas's avatar
      Fix leaks Same Closes bug #308953. · 8eb4666f
      Kjartan Maraas authored
      2005-06-27  Kjartan Maraas  <kmaraas@gnome.org>
      
      	* gtk/gtkhruler.c: (gtk_hruler_draw_ticks): Fix leaks
      	* gtk/gtkvruler.c: (gtk_vruler_draw_ticks): Same
      	Closes bug #308953.
      8eb4666f
    • Matthias Clasen's avatar
      Use GMappedFile. · d4c43a42
      Matthias Clasen authored
      2005-06-27  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Use
      	GMappedFile.
      
      	* configure.in: Require GLib 2.7.1
      d4c43a42
    • Matthias Clasen's avatar
      Pay attention to the scroll offset when drawing the box. (#308834, Tom von · 92e32270
      Matthias Clasen authored
      2005-06-26  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkmenu.c (gtk_menu_paint): Pay attention to the
      	scroll offset when drawing the box.  (#308834, Tom von
      	Schwerdtner)
      92e32270
  4. 26 Jun, 2005 5 commits
  5. 25 Jun, 2005 2 commits
    • Matthias Clasen's avatar
      Add a GrabBroken event to GDK, and a grab-broken-event signal to · 9b356ea0
      Matthias Clasen authored
      2005-06-25  Matthias Clasen  <mclasen@redhat.com>
      
      	Add a GrabBroken event to GDK, and a grab-broken-event
      	signal to GtkWidget.  (#107320, Simon Cooke, initial patch
      	by John Ehresman)
      
      	* gdk/gdkevents.h: Add a GDK_GRAB_BROKEN event type,
      	define a GdkEventGrabBroken event struct.
      
      	* gdk/win32/gdkevents-win32.c (gdk_event_translate):
      	Generate GrabBroken events in response to WM_KILLFOCUS.
      
      	* gdk/x11/gdkmain-x11.c: Generate GrabBroken events
      	when a grab is broken by the window becoming unviewable,
      	or by another grab from the same client.
      
      	* gtk/gtkwidget.h (GtkWidgetClass): Add grab_broken_event.
      
      	* gtk/gtkwidget.c (gtk_widget_event_internal): Translate
      	GrabBroken events into grab_broken_event signals.
      
      	* gtk/gtkmain.c (gtk_main_do_event): Propagate GrabBroken
      	events.
      
      	* gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): Deactivate
      	the menu when the grab is broken.
      
      	* gtk/gtkcolorsel.c (gtk_color_selection_grab_broken): Stop
      	the color picker if the grab is broken.
      
      	* gtk/gtkpaned.c (gtk_paned_grab_broken): Stop the drag if
      	the grab is broken.
      9b356ea0
    • Matthias Clasen's avatar
      Add some new stock items. (#166480, Kristof Vansant) · effe3785
      Matthias Clasen authored
      2005-06-25  Matthias Clasen  <mclasen@redhat.com>
      
      	Add some new stock items.  (#166480, Kristof Vansant)
      
      	* gtk/stock-icons/stock_fullscreen_16.png:
      	* gtk/stock-icons/stock_fullscreen_24.png:
      	* gtk/stock-icons/stock_leave_fullscreen_16.png:
      	* gtk/stock-icons/stock_leave_fullscreen_24.png:
      	* gtk/stock-icons/stock_info_16.png:
      	* gtk/stock-icons/stock_info_24.png: New icons.
      
      	* gtk/stock-icons/Makefile.am: Add new icons.
      
      	* gtk/gtkstock.h: Define names for the new icons.
      
      	* gtk/gtkstock.c (builtin_items): Register new stock items.
      
      	* gtk/gtkiconfactory.c (get_default_icons): Register new
      	stock icons.
      effe3785
  6. 24 Jun, 2005 2 commits
  7. 23 Jun, 2005 5 commits
  8. 22 Jun, 2005 1 commit
  9. 21 Jun, 2005 7 commits
  10. 20 Jun, 2005 3 commits
  11. 19 Jun, 2005 5 commits