1. 30 Jun, 2005 2 commits
    • 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
    • Matthias Clasen's avatar
      Updates · 546e045c
      Matthias Clasen authored
      546e045c
  2. 28 Jun, 2005 5 commits
  3. 27 Jun, 2005 11 commits
    • Francisco Javier F. Serrador's avatar
      Updated Spanish translation. · e93418a1
      Francisco Javier F. Serrador authored
      2005-06-28  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>
      
      	* es.po: Updated Spanish translation.
      e93418a1
    • 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
    • Priit Laes's avatar
      Translation updated by Ivar Smolin. · e9adf47a
      Priit Laes authored
      2005-06-27  Priit Laes  <plaes@cvs.gnome.org>
      
      	* et.po: Translation updated by Ivar Smolin.
      e9adf47a
    • Matthias Clasen's avatar
      Avoid a segfault. (#309054) · c719b4bf
      Matthias Clasen authored
      2005-06-27  Matthias Clasen  <mclasen@redhat.com>
      
      	* modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
      	Avoid a segfault. (#309054)
      
      	* gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
      	fields for grab timestamps.
      
      	* gdk/x11/gdkmain-x11.c (gdk_pointer_grab, gdk_keyboard_grab):
      	Store grab timestamps when grabbing.
      
      	* gdk/x11/gdkdisplay-x11.c (gdk_display_keyboard_ungrab)
      	(gdk_display_pointer_ungrab): Don't unset the grab_window
      	if the timestamps indicate that the ungrab will fails.
      c719b4bf
    • 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
      Unregister XIM callbacks here. (#309054) · 1b8d849b
      Matthias Clasen authored
      2005-06-26  Matthias Clasen  <mclasen@redhat.com>
      
      	* modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
      	Unregister XIM callbacks here.  (#309054)
      
      	* modules/input/gtkimcontextxim.h: Small cleanup.
      1b8d849b
    • 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 8 commits
  5. 25 Jun, 2005 3 commits
    • Marcel Telka's avatar
      Updated Slovak translation. · 89ea42aa
      Marcel Telka authored
      2005-06-25  Marcel Telka  <marcel@telka.sk>
      
      	* sk.po: Updated Slovak translation.
      89ea42aa
    • 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 6 commits
    • Matthias Clasen's avatar
      Make movement by paragraphs up/down symmetric. (#307055, Behnam Esfahbod) · 458d71a9
      Matthias Clasen authored
      2005-06-24  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtktextview.c
      	(gtk_text_view_move_cursor_internal): Make movement by
      	paragraphs up/down symmetric.  (#307055, Behnam Esfahbod)
      458d71a9
    • Owen Taylor's avatar
      Fix up selection of conversion functions for MSB machines: · dd19f542
      Owen Taylor authored
      2005-06-24  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkrgb.c (gdk_rgb_select_conv): Fix up selection of
              conversion functions for MSB machines: convert_0888[_br]
              now work on bytes so are endian independent.
              (Reported by David Zeuthen)
      dd19f542
    • Matthias Clasen's avatar
      Don't jump to the next line if we are at the end of the line. · 47ab9b2d
      Matthias Clasen authored
      2005-06-24  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtktextview.c (gtk_text_view_scroll_hpages): Don't
      	jump to the next line if we are at the end of the line.
      47ab9b2d
    • Tor Lillqvist's avatar
      Mention also bug #308413. · ded7d9b2
      Tor Lillqvist authored
      ded7d9b2
    • Tor Lillqvist's avatar
      Improve and simplify line segment rendering on Win32, especially the · baad14ee
      Tor Lillqvist authored
      2005-06-23  Tor Lillqvist  <tml@novell.com>
      
      	Improve and simplify line segment rendering on Win32, especially
      	the implementation of GDK_CAP_NOT_LAST, and dashed lines. Fixes
      	bug #306396.
      
      	* gdk/win32/gdkprivate-win32.h (GdkGCWin32): Save the GdkGC's
      	line_style, cap_style and join_style as such in the
      	GdkGCWin32. Don't need to keep the pen_double_dash flag, we can
      	check the line_style.
      
      	* gdk/win32/gdkgc-win32.c (fixup_pen): New internal function. Sets
      	up the GDI pen type, style, end cap and join attributes to use
      	based on the pen width, GDK line style, end cap style, and join
      	style.
      
      	For a narrow (zero-width) GDK pen with the GDK_CAP_NOT_LAST end
      	cap style, which typically are used for XOR drawing where it is
      	essential that the last pixel is not drawn, use a GDI cosmetic
      	pen. Only for a cosmetic pen does GDI not draw the last pixel. I
      	deduced this by experimetation, the documentation is rather vague.
      
      	For other GDK pens use a geometric GDI pen. If the width is 0 or 1
      	and the GDK end cap style is GDK_CAP_BUTT, and the line style is
      	GDK_LINE_SOLID, use PS_ENDCAP_ROUND. This ensures that also
      	single-pixel length lines are drawn. (For sngle-pixel width lines
      	roundness as such is of course irrelevant.) For dashed lines, use
      	PS_ENDCAP_FLAT.
      
      	For wide lines use PS_ENDCAP_FLAT, _ROUND or _SQUARE,
      	respectively, for GDK_CAP_BUTT, GDK_CAP_ROUND and GDK_CAP_PROJECTING.
      
      	For one pixel on-off dashed lines, use PS_ALTERNATE, it seems to
      	work better than PS_USERSTYLE. For other dashed lines, use
      	PS_USERSTYLE and the dashes as set by the user (or the default
      	four-pixel on-off style).
      
      	(gdk_win32_gc_values_to_win32values, gdk_win32_gc_set_dashes):
      	Call fixup_pen() to do the pen settings after modifying some of
      	the GDK GC attributes that affect pens.
      
      	* gdk/win32/gdkdrawable-win32.c (render_line_horizontal,
      	render_line_vertical, draw_segments): Check GdkGCWin32::line_style
      	instead of the the removed pen_double_dash member. Don't use
      	PATCOPY unconditionally in the PatBlt() call, use a raster ope
      	code that depends on the GC function in use.
      
      	(draw_rectangle, draw_segments, draw_lines): Be more careful in
      	deciding when to do the manual dash rendering.
      
      	(draw_segments): Don't do any manual "last point" drawing at
      	all. The above changes takes care of narrow line segments being
      	drawn correctly in most cases, at least on NT-based Windows.
      baad14ee
    • Kwok-Koon Cheung's avatar
      fix language team reference · 621f16a4
      Kwok-Koon Cheung authored
      621f16a4
  7. 23 Jun, 2005 5 commits