summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 2.7.1GTK_2_7_1Matthias Clasen2005-07-01178-32017/+33021
|
* Allow -1 for width/height and interpret them as "not constrained".Matthias Clasen2005-07-012-11/+38
| | | | | | | | 2005-07-01 Matthias Clasen <mclasen@redhat.com> * gdk-pixbuf-io.c (gdk_pixbuf_new_from_file_at_scale): Allow -1 for width/height and interpret them as "not constrained". (#309258, Mark McLoughlin)
* Prevent an infinite loop when G_FILENAME_ENCODING is invalid. (#309280,Matthias Clasen2005-07-014-2/+19
| | | | | | | 2005-07-01 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilesel.c (cmpl_init_state): Prevent an infinite loop when G_FILENAME_ENCODING is invalid. (#309280, Padraig Brady)
* Updated Traditional Chinese translation.Chao-Hsiung Liao2005-07-012-358/+324
| | | | | | 2005-07-01 Chao-Hsiung Liao <j_h_liau@yahoo.com.tw> * zh_TW.po: Updated Traditional Chinese translation.
* Updated traditional Chinese translation from GNOME HK TeamKwok-Koon Cheung2005-07-012-319/+202
| | | | * zh_TW.po: Updated traditional Chinese translation from GNOME HK Team
* declare _gdk_xgrab_check_button_event.Manish Singh2005-06-305-49/+69
| | | | | | | | Thu Jun 30 14:17:24 2005 Manish Singh <yosh@gimp.org> * gdk/x11/gdkprivate-x11.h: declare _gdk_xgrab_check_button_event. * gtk/gtkbutton.c: fix signature of gtk_button_grab_broken.
* Avoid infinite loop if a mask is zero. (#309222, David Saxton)Matthias Clasen2005-06-304-0/+15
| | | | | | | 2005-06-30 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkvisual-x11.c (gdk_visual_decompose_mask): Avoid infinite loop if a mask is zero. (#309222, David Saxton)
* Clarify the code, gcc 4 complains about predecrement in MAX().Matthias Clasen2005-06-304-1/+13
| | | | | | | 2005-06-30 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child): Clarify the code, gcc 4 complains about predecrement in MAX().
* Don't prematurely unregister callbacks.Matthias Clasen2005-06-304-1/+10
| | | | | | | 2005-06-30 Matthias Clasen <mclasen@redhat.com> * modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize): Don't prematurely unregister callbacks.
* UpdatesMatthias Clasen2005-06-304-0/+41
|
* Handle broken grabs.Matthias Clasen2005-06-3010-12/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* UpdatesMatthias Clasen2005-06-3012-50/+125
|
* Clarify GtkComboBoxEntryRoss Burton2005-06-282-1/+6
|
* Updated Thai translation.Theppitak Karoonboonyanan2005-06-282-128/+150
| | | | | | 2005-06-28 Theppitak Karoonboonyanan <thep@linux.thai.net> * th.po: Updated Thai translation.
* Make sure that cell boxes are always completely inside the item area.Matthias Clasen2005-06-284-10/+33
| | | | | | | | 2005-06-28 Matthias Clasen <mclasen@redhat.com> * gtk/gtkiconview.c (gtk_icon_view_calculate_item_size2): Make sure that cell boxes are always completely inside the item area.
* Make the list of demos scrollable.Matthias Clasen2005-06-284-2/+30
| | | | | | | 2005-06-27 Matthias Clasen <mclasen@redhat.com> * demos/gtk-demo/main.c (create_tree): Make the list of demos scrollable.
* Fix positioning at the end of the line for lines ending in invisibleMatthias Clasen2005-06-284-3/+29
| | | | | | | | | | 2005-06-27 Matthias Clasen <mclasen@redhat.com> * gtk/gtktextlayout.c (gtk_text_layout_move_iter_to_line_end): Fix positioning at the end of the line for lines ending in invisible characters. (gtk_text_layout_get_line_display): Set display->layout to a PangoLayout, even for totally invisible lines.
* Updated Spanish translation.Francisco Javier F. Serrador2005-06-274-1793/+1817
| | | | | | 2005-06-28 Francisco Javier F. Serrador <serrador@cvs.gnome.org> * es.po: Updated Spanish translation.
* Ignore GrabBroken events which are caused by overgrabbing inside theMatthias Clasen2005-06-279-31/+114
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Continue to activate even if we can't grab the keyboard.Matthias Clasen2005-06-274-13/+44
| | | | | | | | | 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)
* Translation updated by Ivar Smolin.Priit Laes2005-06-272-716/+542
| | | | | | 2005-06-27 Priit Laes <plaes@cvs.gnome.org> * et.po: Translation updated by Ivar Smolin.
* Avoid a segfault. (#309054)Matthias Clasen2005-06-277-22/+92
| | | | | | | | | | | | | | | | | 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.
* Cancel menus when they are grab-shadowed by something thats not a submenu.Matthias Clasen2005-06-274-0/+32
| | | | | | | | 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)
* Fix indentation.Owen Taylor2005-06-275-2/+17
| | | | | | | 2005-06-27 Owen Taylor <otaylor@redhat.com> * gtk/gtk[hv]ruler.c (gtk_[hv]ruler_draw_ticks): Fix indentation.
* Fix leaks Same Closes bug #308953.Kjartan Maraas2005-06-275-2/+24
| | | | | | | | 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.
* Use GMappedFile.Matthias Clasen2005-06-275-66/+39
| | | | | | | | | 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
* Unregister XIM callbacks here. (#309054)Matthias Clasen2005-06-275-7/+35
| | | | | | | | | 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.
* Pay attention to the scroll offset when drawing the box. (#308834, Tom vonMatthias Clasen2005-06-274-2/+21
| | | | | | | | 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)
* gdk/Makefile.am Current GNU tools do understand the PRIVATE keyword, so noTor Lillqvist2005-06-265-20/+40
| | | | | | | | | | 2005-06-26 Tor Lillqvist <tml@novell.com> * gdk/Makefile.am * gtk/Makefile.am: Current GNU tools do understand the PRIVATE keyword, so no need to remove those entries from the import library. libtool installs the .dll.a import library itself, so no need to do it here. Install the .def file.
* Current GNU tools do understand the PRIVATE keyword, so no need to removeTor Lillqvist2005-06-262-16/+16
| | | | | | | | | 2005-06-26 Tor Lillqvist <tml@novell.com> * Makefile.am: Current GNU tools do understand the PRIVATE keyword, so no need to remove those entries from the import library. libtool installs the .dll.a import library itself, so no need to do it here. Do install the .def file.
* Updated Slovak translation.Marcel Telka2005-06-262-1260/+1252
| | | | | | 2005-06-26 Marcel Telka <marcel@telka.sk> * sk.po: Updated Slovak translation.
* add GDK_GRAB_BROKEN to the switch cases.Manish Singh2005-06-266-2/+34
| | | | | | | | | | | | Sun Jun 26 00:04:36 2005 Manish Singh <yosh@gimp.org> * gdk/gdkevents.c (gdk_event_get_time, gdk_event_get_state): add GDK_GRAB_BROKEN to the switch cases. * gtk/gtkmenushell.c (gtk_menu_shell_grab_broken): remove unused variables. * gtk/gtkpaned.c (gtk_paned_grab_broken): return TRUE.
* Stop column header drag operations if the grab is broken.Matthias Clasen2005-06-264-0/+32
| | | | | | | 2005-06-26 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreeview.c (gtk_tree_view_grab_broken): Stop column header drag operations if the grab is broken.
* Stop the drag if the grab is broken.Matthias Clasen2005-06-264-0/+26
| | | | | | | 2005-06-26 Matthias Clasen <mclasen@redhat.com> * gtk/gtkhsv.c (gtk_hsv_grab_broken): Stop the drag if the grab is broken.
* Don't do explicitly ungrab pointer and keyboard. We're unmapping the grabMatthias Clasen2005-06-264-23/+53
| | | | | | | | | 2005-06-26 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcombobox.c (gtk_combo_box_popdown): Don't do explicitly ungrab pointer and keyboard. We're unmapping the grab window anyway. (gtk_combo_box_popup): Handle grab failures.
* Don't emit grab-broken for overgrabbing, until we figure out how to doMatthias Clasen2005-06-264-6/+30
| | | | | | | | 2005-06-25 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkmain-x11.c (gdk_keyboard_grab, gdk_pointer_grab): Don't emit grab-broken for overgrabbing, until we figure out how to do that without breaking the menu code.
* Updated Slovak translation.Marcel Telka2005-06-252-108/+119
| | | | | | 2005-06-25 Marcel Telka <marcel@telka.sk> * sk.po: Updated Slovak translation.
* Add a GrabBroken event to GDK, and a grab-broken-event signal toMatthias Clasen2005-06-2516-27/+319
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add some new stock items. (#166480, Kristof Vansant)Matthias Clasen2005-06-2513-0/+90
| | | | | | | | | | | | | | | | | | | | | | 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.
* Make movement by paragraphs up/down symmetric. (#307055, Behnam Esfahbod)Matthias Clasen2005-06-244-6/+7
| | | | | | | | 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)
* Fix up selection of conversion functions for MSB machines:Owen Taylor2005-06-244-13/+24
| | | | | | | | | 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)
* Don't jump to the next line if we are at the end of the line.Matthias Clasen2005-06-244-1/+19
| | | | | | | 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.
* Mention also bug #308413.Tor Lillqvist2005-06-243-6/+6
|
* Improve and simplify line segment rendering on Win32, especially theTor Lillqvist2005-06-246-298/+431
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* fix language team referenceKwok-Koon Cheung2005-06-244-1740/+1771
|
* Updated Canadian English translation.Adam Weinberger2005-06-232-6/+10
| | | | | | 2005-06-23 Adam Weinberger <adamw@gnome.org> * en_CA.po: Updated Canadian English translation.
* Fix an error in the cache timeout logic. (#166601, Morten Welinder)Matthias Clasen2005-06-234-5/+21
| | | | | | | | 2005-06-23 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilesystemunix.c (gtk_file_system_unix_get_folder): Fix an error in the cache timeout logic. (#166601, Morten Welinder)
* Change the keynav for header reordering and resizing to Alt-arrows andMatthias Clasen2005-06-234-4/+20
| | | | | | | | | 2005-06-23 Matthias Clasen <mclasen@redhat.com> * gtk/gtktreeview.c (gtk_tree_view_key_press): Change the keynav for header reordering and resizing to Alt-arrows and Shift-Alt-arrows, following a proposal by the keynav authority. (#308666, Calum Benson)
* Remove a leftover debugging envvar.Matthias Clasen2005-06-234-4/+16
| | | | | | | 2005-06-23 Matthias Clasen <mclasen@redhat.com> * gtk/gtkiconcache.c (_gtk_icon_cache_new_for_path): Remove a leftover debugging envvar.
* Fix the big endian case for 3-channel source. (Reported by David Zeuthen)Owen Taylor2005-06-234-3/+21
| | | | | | | | 2005-06-23 Owen Taylor <otaylor@redhat.com> * gdk/gdkcairo.c (gdk_cairo_set_source_pixbuf): Fix the big endian case for 3-channel source. (Reported by David Zeuthen)