]> Pileus Git - ~andy/gtk/log
~andy/gtk
17 years agoFix a small memory leak. (#403251, Felix Riemann)
Matthias Clasen [Sun, 29 Apr 2007 04:58:20 +0000 (04:58 +0000)]
Fix a small memory leak. (#403251, Felix Riemann)

2007-04-29  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkprintjob.c (gtk_print_job_get_surface): Fix a
        small memory leak.  (#403251, Felix Riemann)

svn path=/trunk/; revision=17693

17 years agoFix a typo. String change ! (#406160, Stephane Raimbault)
Matthias Clasen [Sun, 29 Apr 2007 04:54:36 +0000 (04:54 +0000)]
Fix a typo. String change ! (#406160, Stephane Raimbault)

2007-04-29  Matthias Clasen  <mclasen@redhat.com>

        * modules/printbackends/cups/gtkprintbackendcups.c: Fix a
        typo. String change !  (#406160, Stephane Raimbault)

svn path=/trunk/; revision=17692

17 years agoAdd a function to list the builtin paper sizes. (#382355, Christian
Matthias Clasen [Sun, 29 Apr 2007 04:50:28 +0000 (04:50 +0000)]
Add a function to list the builtin paper sizes. (#382355, Christian

2007-04-29  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtk.symbols:
        * gtk/gtkpapersize.[hc]: Add a function to list the
        builtin paper sizes.  (#382355, Christian Persch)

svn path=/trunk/; revision=17691

17 years agoMake gtk_printer_has_details() and gtk_printer_request_details() public.
Matthias Clasen [Sun, 29 Apr 2007 04:42:13 +0000 (04:42 +0000)]
Make gtk_printer_has_details() and gtk_printer_request_details() public.

2007-04-29  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtk.symbols:
        * gtk/gtkprinter-private.h:
        * gtk/gtkprinter.[hc]: Make gtk_printer_has_details() and
        gtk_printer_request_details() public.

        * gtk/gtkpagesetupunixdialog.c:
        * gtk/gtkprintunixdialog.c: Update callers.  (#389203,
        Christian Persch)

svn path=/trunk/; revision=17690

17 years agoMore cleanups
Matthias Clasen [Sun, 29 Apr 2007 04:10:39 +0000 (04:10 +0000)]
More cleanups

svn path=/trunk/; revision=17689

17 years agoCleanups
Matthias Clasen [Sun, 29 Apr 2007 03:52:10 +0000 (03:52 +0000)]
Cleanups

svn path=/trunk/; revision=17688

17 years agoMake building the test print backend optional
Matthias Clasen [Sun, 29 Apr 2007 03:41:53 +0000 (03:41 +0000)]
Make building the test print backend optional

svn path=/trunk/; revision=17687

17 years agoCorrect some copyright lines.
Matthias Clasen [Sun, 29 Apr 2007 03:31:03 +0000 (03:31 +0000)]
Correct some copyright lines.

2007-04-28  Matthias Clasen  <mclasen@redhat.com>

        * modules/printbackends/lpr/*:
        * modules/printbackends/cups/*: Correct some copyright lines.

        * configure.in:
        * modules/printbackends/Makefile.am:
        * modules/printbackends/test/*: Add a test print backend.
        (#409089, John Palmieri)

svn path=/trunk/; revision=17686

17 years agoAdd a way to specify accumulative margins. (#344499, Nate Nielsen)
Matthias Clasen [Sun, 29 Apr 2007 01:14:29 +0000 (01:14 +0000)]
Add a way to specify accumulative margins. (#344499, Nate Nielsen)

2007-04-28  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtktexttag.[hc]: Add a way to specify accumulative
        margins.  (#344499, Nate Nielsen)

svn path=/trunk/; revision=17685

17 years agoFix the offsets of the input-only window if we also have a visible window.
Matthias Clasen [Sat, 28 Apr 2007 21:45:39 +0000 (21:45 +0000)]
Fix the offsets of the input-only window if we also have a visible window.

2007-04-28  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkeventbox.c (gtk_event_box_realize): Fix the offsets
        of the input-only window if we also have a visible window.
        (#405089)

svn path=/trunk/; revision=17683

17 years agoRecognize negative column indices as invalid. (#415260, Chris Wilson)
Matthias Clasen [Sat, 28 Apr 2007 21:29:05 +0000 (21:29 +0000)]
Recognize negative column indices as invalid. (#415260, Chris Wilson)

2007-04-28  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkliststore.c (gtk_list_store_set_valist_internal):
        * gtk/gtktreestore.c (gtk_tree_store_set_valist_internal):
        Recognize negative column indices as invalid.  (#415260,
        Chris Wilson)

svn path=/trunk/; revision=17681

17 years agofix two more potential races that could happen when an application is
Ronald Bultje [Sat, 28 Apr 2007 18:14:19 +0000 (18:14 +0000)]
fix two more potential races that could happen when an application is

2007-04-28  Ronald Bultje  <rbultje@ronald.bitfreak.net>

        * gdk/quartz/gdkeventloop-quartz.c: (select_thread_func),
        (poll_func): fix two more potential races that could happen when
        an application is polling in the mainloop and a separate thread
        tries to wake it up using g_idle_add(). Fixes #425271 comment 5.

svn path=/trunk/; revision=17680

17 years agoSame fix for gtk_entry_real_insert_text
Matthias Clasen [Sat, 28 Apr 2007 18:04:00 +0000 (18:04 +0000)]
Same fix for gtk_entry_real_insert_text

svn path=/trunk/; revision=17679

17 years agoOnly call g_object_get() when necessary. (#373137, Morten Welinder, patch
Matthias Clasen [Sat, 28 Apr 2007 17:53:50 +0000 (17:53 +0000)]
Only call g_object_get() when necessary. (#373137, Morten Welinder, patch

2007-04-28  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkentry.c (gtk_entry_grab_focus): Only call
        g_object_get() when necessary.  (#373137, Morten Welinder,
        patch by Xan Lopez)

svn path=/trunk/; revision=17678

17 years agoAdd a note about being embedded. (#340107, Christian Persch)
Matthias Clasen [Sat, 28 Apr 2007 15:52:25 +0000 (15:52 +0000)]
Add a note about being embedded. (#340107, Christian Persch)

2007-04-28  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkstatusicon.c (gtk_status_icon_get_size): Add
        a note about being embedded.  (#340107, Christian Persch)

svn path=/trunk/; revision=17677

17 years agoAdd GTK_TARGET_OTHER_{APP,WIDGET} to restrict drags within an
Matthias Clasen [Sat, 28 Apr 2007 15:34:39 +0000 (15:34 +0000)]
Add GTK_TARGET_OTHER_{APP,WIDGET} to restrict drags within an

2007-04-28  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkdnd.[hc]: Add GTK_TARGET_OTHER_{APP,WIDGET} to
        restrict drags within an application/widget.  (#163141,
        Jorn Baayen)

svn path=/trunk/; revision=17676

17 years agoMake make clean clean
Matthias Clasen [Sat, 28 Apr 2007 15:09:57 +0000 (15:09 +0000)]
Make make clean clean

svn path=/trunk/; revision=17675

17 years agoAccept unknown parameters with a warning when saving. (#405539, Daniel
Matthias Clasen [Sat, 28 Apr 2007 14:48:22 +0000 (14:48 +0000)]
Accept unknown parameters with a warning when saving. (#405539, Daniel

2007-04-28  Matthias Clasen <mclasen@redhat.com>

        * io-png.c:
        * io-jpeg.c: Accept unknown parameters with a warning
        when saving.  (#405539, Daniel Atallah)

svn path=/trunk/; revision=17673

17 years agoPlug memory leaks caused by wrong use of g_slist_remove_link(). (#405515,
Matthias Clasen [Sat, 28 Apr 2007 14:41:04 +0000 (14:41 +0000)]
Plug memory leaks caused by wrong use of g_slist_remove_link(). (#405515,

2007-04-28  Matthias Clasen  <mclasen@redhat.com>

        * gdk/win32/bdfcursor.c (compose_cursors_from_fonts):
        * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_reorder):
        * gtk/gtkfilesystemmodel.c (got_root_folder_cb):
        (get_children_folder_cb): Plug memory leaks caused by wrong
        use of g_slist_remove_link().  (#405515, Nicolas Peninguy)

svn path=/trunk/; revision=17671

17 years agoFix headers in gtk-demo printing demo
Matthias Clasen [Sat, 28 Apr 2007 14:06:25 +0000 (14:06 +0000)]
Fix headers in gtk-demo printing demo

svn path=/trunk/; revision=17669

17 years agoUse strstr instead of g_strstr with -1 for length.
Xan Lopez [Sat, 28 Apr 2007 11:28:58 +0000 (11:28 +0000)]
Use strstr instead of g_strstr with -1 for length.

* gtk/gtkentrycompletion.c (gtk_entry_completion_insert_completion_text):
Use strstr instead of g_strstr with -1 for length.

svn path=/trunk/; revision=17668

17 years agoFix typo.
Xan Lopez [Sat, 28 Apr 2007 07:49:54 +0000 (07:49 +0000)]
Fix typo.

svn path=/trunk/; revision=17667

17 years agoRember the user input that triggered the completion, add API to the
Xan Lopez [Sat, 28 Apr 2007 07:47:08 +0000 (07:47 +0000)]
Rember the user input that triggered the completion, add API to the

* gtk/gtkentry.c:
* gtk/gtkentrycompletion.c:
* gtk/gtkentrycompletion.h:
* gtk/gtkentryprivate.h:

Rember the user input that triggered the completion, add
API to the retrieve it and reset the entry contents to it
if the user cancels the tentative completion during
the inline-selection.

svn path=/trunk/; revision=17666

17 years agoFactor out window movement functions. (#63820, Tilman Sauerbeck)
Matthias Clasen [Fri, 27 Apr 2007 23:31:58 +0000 (23:31 +0000)]
Factor out window movement functions. (#63820, Tilman Sauerbeck)

2007-04-27  Matthias Clasen  <mclasen@redhat.com>

        * gdk/x11/gdkgeometry-x11.c: Factor out window movement
        functions. (#63820, Tilman Sauerbeck)

svn path=/trunk/; revision=17665

17 years agoFactor out translate_pos(). (#63820, Tilman Sauerbeck)
Matthias Clasen [Fri, 27 Apr 2007 23:29:23 +0000 (23:29 +0000)]
Factor out translate_pos(). (#63820, Tilman Sauerbeck)

2007-04-27  Matthias Clasen  <mclasen@redhat.com>

        * gdk/x11/gdkgeometry-x11.c: Factor out translate_pos().
        (#63820, Tilman Sauerbeck)

svn path=/trunk/; revision=17664

17 years agoFactor out window mapping and unmapping functions. (#63820, Tilman
Matthias Clasen [Fri, 27 Apr 2007 23:26:46 +0000 (23:26 +0000)]
Factor out window mapping and unmapping functions. (#63820, Tilman

2007-04-27  Matthias Clasen  <mclasen@redhat.com>

        * gdk/x11/gdkgeometry-x11.c: Factor out window mapping
        and unmapping functions.  (#63820, Tilman Sauerbeck)

svn path=/trunk/; revision=17663

17 years agoMake list handling code easier to read. (#63820, Tilman Sauerbeck)
Matthias Clasen [Fri, 27 Apr 2007 23:23:52 +0000 (23:23 +0000)]
Make list handling code easier to read. (#63820, Tilman Sauerbeck)

2007-04-27  Matthias Clasen  <mclasen@redhat.com>

        * gdk/x11/gdkgeometry-x11.c: Make list handling code
        easier to read.  (#63820, Tilman Sauerbeck)

svn path=/trunk/; revision=17662

17 years agoInternalize some strings, pointed out by Damon Chaplin.
Matthias Clasen [Fri, 27 Apr 2007 23:10:38 +0000 (23:10 +0000)]
Internalize some strings, pointed out by Damon Chaplin.

2007-04-27  Matthias Clasen  <mclasen@redhat.com>

        * gtkassistant.c:
        * gtkiconfactory.c:
        * gtkiconview.c:
        * gtkpapersize.c:
        * gtkrecentmanager.c:
        * gtktextiter.c: Internalize some strings, pointed out
        by Damon Chaplin.

svn path=/trunk/; revision=17661

17 years agoSupport inline-selection in entries (#318459)
Xan Lopez [Fri, 27 Apr 2007 16:50:04 +0000 (16:50 +0000)]
Support inline-selection in entries (#318459)

Support inline-selection in entries (#318459)

* gtk/gtkentry.c:
* gtk/gtkentrycompletion.c:
* gtk/gtkentrycompletion.h:
* gtk/gtkentryprivate.h:

When enabled cursor-match is emited when the cursor is on
a possible completion on the list. The default implementation
will replace the contents on the entry with the contents of
the text column in the completion model.

Review and improvements by Matthias Clasen.

svn path=/trunk/; revision=17660

17 years agoMerged heavily modified patch from maemo-gtk which enables opening and
Michael Natterer [Fri, 27 Apr 2007 14:49:37 +0000 (14:49 +0000)]
Merged heavily modified patch from maemo-gtk which enables opening and

2007-04-27  Michael Natterer  <mitch@imendio.com>

Merged heavily modified patch from maemo-gtk which enables opening
and closing submenus on click, and introduces some usability
changes when gtk-touchscreen-mode is enabled (bug #128968):

* gtk/gtkmenushell.c (struct GtkMenuShellPrivate): added boolean
"activated_submenu" to indicate that the current mouse operation
(click or drag) has opened a submenu.

(gtk_menu_shell_button_press): pop up submenus without delay
and record the fact in "activated_submenu".

(gtk_menu_shell_button_release): if a submenu was explicitely
opened, or not opened by this release's button_press, or enough
time has passed since timeout-opening it, close the submenu here.

(gtk_menu_shell_enter_notify): when entering a menu item with
any mouse button pressed, open its submenu.

(gtk_real_menu_shell_move_current): in touchsreen mode, close the
submenu when moving the focus away from it via keyboard-navigation.

* gtk/gtkmenuitem.[ch] (_gtk_menu_item_popup_submenu): added
parameter "gboolean with_delay" so GtkMenuShell can control this
for the different scenarios of submenu showing.

(_gtk_menu_item_popdown_submenu): new function. also needed by
GtkMenuShell for closing submenus on click.

Renamed internal function gtk_menu_item_select_timeout() to
gtk_menu_item_popup_timeout().

(gtk_menu_item_real_popup_submenu): new utility function which
does the actual popup and records the exact time of the popup when
the menu was timeout-opened (using g_get_current_time()).

(gtk_real_menu_item_select): don't add the popup timeout when in
touchscreen mode.

* gtk/gtkmenu.c (gtk_menu_popup): in touchscreen mode, select the
first item of every opened menu.

svn path=/trunk/; revision=17659

17 years agoAppend a '/' to directory names in the completion popup. (#431323, Maarten
Matthias Clasen [Thu, 26 Apr 2007 17:04:33 +0000 (17:04 +0000)]
Append a '/' to directory names in the completion popup. (#431323, Maarten

2007-04-26  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkfilechooserentry.c: Append a '/' to directory names
        in the completion popup.  (#431323, Maarten Maathuis)

svn path=/trunk/; revision=17658

17 years agoAdd a simple validation demo. Make it possible to add arbitrary children
Matthias Clasen [Thu, 26 Apr 2007 15:55:48 +0000 (15:55 +0000)]
Add a simple validation demo. Make it possible to add arbitrary children

2007-04-26  Matthias Clasen  <mclasen@redhat.com>

        * demo/gtk-demo/combobox.c: Add a simple validation demo.
        * gtk/gtkcomboboxentry.c: Make it possible to add arbitrary
        children to a GtkComboBoxEntry.  (#426401, Paul Pogonyshev)

svn path=/trunk/; revision=17657

17 years agoRemove old child of scrolled window before adding a new one when switching
Tor Lillqvist [Thu, 26 Apr 2007 06:23:36 +0000 (06:23 +0000)]
Remove old child of scrolled window before adding a new one when switching

2007-04-26  Tor Lillqvist  <tml@novell.com>

* gtk/gtkinputdialog.c (gtk_input_dialog_fill_axes)
(gtk_input_dialog_fill_keys): Remove old child of scrolled window
before adding a new one when switching what input device is being
handled. (#399425)

svn path=/trunk/; revision=17656

17 years agoMark the printer list as done. (#428665, Bogdan Gheorghe)
Matthias Clasen [Thu, 26 Apr 2007 06:14:03 +0000 (06:14 +0000)]
Mark the printer list as done. (#428665, Bogdan Gheorghe)

2007-04-26  Matthias Clasen  <mclasen@redhat.com>

        * modules/printbackends/lpr/gtkprintbackendlpr.c
        (gtk_print_backend_lpr_init): Mark the printer list as done.
        (#428665, Bogdan Gheorghe)

svn path=/trunk/; revision=17653

17 years agoDon't install UNIX-printing headers and support files on non-UNIX
Matthias Clasen [Thu, 26 Apr 2007 06:03:54 +0000 (06:03 +0000)]
Don't install UNIX-printing headers and support files on non-UNIX

2007-04-26  Matthias Clasen  <mclasen@redhat.com>

        * Makefile.am:
        * gtk/Makefile.am: Don't install UNIX-printing headers and
        support files on non-UNIX platforms.  (#425655, Vincent Geddes)

svn path=/trunk/; revision=17651

17 years agoAccept unnamed separators. (#369112, Christian Persch)
Matthias Clasen [Thu, 26 Apr 2007 05:54:21 +0000 (05:54 +0000)]
Accept unnamed separators. (#369112, Christian Persch)

2007-04-26  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkuimanager.c (gtk_ui_manager_add_ui): Accept
        unnamed separators.  (#369112, Christian Persch)

svn path=/trunk/; revision=17649

17 years agoDon't access invalid memory. (#429732, Armin Burgmeier)
Matthias Clasen [Thu, 26 Apr 2007 05:50:18 +0000 (05:50 +0000)]
Don't access invalid memory. (#429732, Armin Burgmeier)

2007-04-26  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkaccelgroup.c (gtk_accel_group_finalize): Don't access
        invalid memory.  (#429732, Armin Burgmeier)

svn path=/trunk/; revision=17647

17 years agoUse native Win32 cursors where it makes sense
Cody Russell [Thu, 26 Apr 2007 05:27:55 +0000 (05:27 +0000)]
Use native Win32 cursors where it makes sense

svn path=/trunk/; revision=17645

17 years agoWin32 drop shadow goodness
Cody Russell [Wed, 25 Apr 2007 23:44:54 +0000 (23:44 +0000)]
Win32 drop shadow goodness

svn path=/trunk/; revision=17643

17 years agoadded 16x16 version of as per discussion in bug #431740.
Jakub Steiner [Wed, 25 Apr 2007 21:04:59 +0000 (21:04 +0000)]
added 16x16 version of as per discussion in bug #431740.

2007-04-25  Jakub Steiner <jimmac@ximian.com>

* gtk/stock-icons/16/gtk-close.{png,svg}: added 16x16 version of
as per discussion in bug #431740.

svn path=/trunk/; revision=17642

17 years agoSet the background of the header window again. (#431067, Benjamin Berg)
Matthias Clasen [Wed, 25 Apr 2007 19:10:25 +0000 (19:10 +0000)]
Set the background of the header window again. (#431067, Benjamin Berg)

2007-04-25  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtktreeview.c (gtk_tree_view_style_set): Set the background
        of the header window again.  (#431067, Benjamin Berg)

svn path=/trunk/; revision=17640

17 years agoSet the filename to NULL for builtin icons, sinc
Matthias Clasen [Wed, 25 Apr 2007 18:01:44 +0000 (18:01 +0000)]
Set the filename to NULL for builtin icons, sinc

2007-04-25  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkicontheme.c (theme_lookup_icon): Set the filename to
        NULL for builtin icons, sinc gtk_icon_info_get_builtin_pixbuf()
        depends on it.

        * tests/testicontheme.c: Report builtin icons.

svn path=/trunk/; revision=17638

17 years agoDon't crash if end_run is not set. (#424168, Matthias Hasselmann)
Matthias Clasen [Wed, 25 Apr 2007 16:28:30 +0000 (16:28 +0000)]
Don't crash if end_run is not set. (#424168, Matthias Hasselmann)

2007-04-25  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkprintoperation.c (preview_iface_end_preview): Don't
        crash if end_run is not set.  (#424168, Matthias Hasselmann)

svn path=/trunk/; revision=17636

17 years agoDon't double the delay time of the first frame. (#431997, Björn
Matthias Clasen [Wed, 25 Apr 2007 14:38:47 +0000 (14:38 +0000)]
Don't double the delay time of the first frame. (#431997, Björn

2007-04-25  Matthias Clasen <mclasen@redhat.com>

        * gdk-pixbuf-simple-anim.c (gdk_pixbuf_simple_anim_add_frame):
        Don't double the delay time of the first frame.  (#431997,
        Björn Lindqvist)

svn path=/trunk/; revision=17634

17 years agoFix a wrong cross reference. (#431289, Bastian Nocera)
Matthias Clasen [Wed, 25 Apr 2007 14:00:10 +0000 (14:00 +0000)]
Fix a wrong cross reference. (#431289, Bastian Nocera)

2007-04-25  Matthias Clasen  <mclasen@redhat.com>

        * gtk/tmpl/gtkdialog.sgml: Fix a wrong cross reference.
        (#431289, Bastian Nocera)

svn path=/trunk/; revision=17633

17 years agoChain up. (#433125, Christian Persch)
Matthias Clasen [Wed, 25 Apr 2007 13:57:16 +0000 (13:57 +0000)]
Chain up. (#433125, Christian Persch)

2007-04-25  Matthias Clasen <mclasen@redhat.com>

        * gdk-pixbuf-scaled-anim.c (gdk_pixbuf_scaled_anim_iter_finalize):
        Chain up.  (#433125, Christian Persch)

svn path=/trunk/; revision=17632

17 years agofix ACTIVE state of scroll buttons (we were setting the state to ACTIVE
Michael Natterer [Wed, 25 Apr 2007 12:11:08 +0000 (12:11 +0000)]
fix ACTIVE state of scroll buttons (we were setting the state to ACTIVE

2007-04-25  Michael Natterer  <mitch@imendio.com>

* gtk/gtkmenu.c (gtk_menu_handle_scrolling): fix ACTIVE state of
scroll buttons (we were setting the state to ACTIVE but
immediately overwriting it with NORMAL or PRELIGHT). Also got rid
of many separate calls to gdk_window_invalidate_rect() by
remembering the old button state and only invalidating the area if
the state has changed (addresses parts of bug #433242, Tommi
Komulainen).

(gtk_menu_scroll_to): change the arrow states only if changing
from or to INSENSITIVE state, so we don't overwrite the ACTIVE
state set by above function.

svn path=/trunk/; revision=17630

17 years agofix the build. Dunno if the fix is right, but I think it is.
Michael Natterer [Wed, 25 Apr 2007 09:47:14 +0000 (09:47 +0000)]
fix the build. Dunno if the fix is right, but I think it is.

2007-04-25  Michael Natterer  <mitch@imendio.com>

* gtk/gtkprintoperation.c (preview_iface_is_selected): fix the
build. Dunno if the fix is right, but I think it is.

svn path=/trunk/; revision=17629

17 years agocleanup/refactor some leftover code.
Kristian Rietveld [Wed, 25 Apr 2007 07:15:49 +0000 (07:15 +0000)]
cleanup/refactor some leftover code.

2007-04-25  Kristian Rietveld  <kris@imendio.com>

* gtk/gtktooltip.c (find_topmost_widget_coords_from_event):
cleanup/refactor some leftover code.

svn path=/trunk/; revision=17628

17 years agoParse half-open ranges like -2 or 3-, and be a bit more liberal about
Matthias Clasen [Tue, 24 Apr 2007 20:16:35 +0000 (20:16 +0000)]
Parse half-open ranges like -2 or 3-, and be a bit more liberal about

2007-04-24  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkprintunixdialog.c (dialog_get_page_ranges): Parse
        half-open ranges like -2 or 3-, and be a bit more liberal
        about whitespace.
        (dialog_set_page_ranges): Support half-open ranges.

        * gtk/gtkprintoperation.c (print_pages_idle): Substitute the
        number of pages in half-open ranges.
        (preview_iface_is_selected): Support half-open ranges here, too.

svn path=/trunk/; revision=17627

17 years agoEnsure the icon_theme->all_icons and dir->icons hash tables use the same
Chris Wilson [Tue, 24 Apr 2007 14:55:52 +0000 (14:55 +0000)]
Ensure the icon_theme->all_icons and dir->icons hash tables use the same

2007-04-24  Chris Wilson  <chris@chris-wilson.co.uk>

    * gtk/gtkicontheme.c (scan_directory): Ensure the
    icon_theme->all_icons and dir->icons hash tables use the same string
    as their keys. (#418531)

svn path=/trunk/; revision=17626

17 years agoCleanup of notebook tab code
Cody Russell [Tue, 24 Apr 2007 03:31:48 +0000 (03:31 +0000)]
Cleanup of notebook tab code

svn path=/trunk/; revision=17623

17 years agoReduce the amount of debug spew if we are not debugging.
Matthias Clasen [Mon, 23 Apr 2007 17:06:07 +0000 (17:06 +0000)]
Reduce the amount of debug spew if we are not debugging.

2007-04-23  Matthias Clasen  <mclasen@redhat.com>

        * modules/printbackends/cups/gtkprintbackendcups.c: Reduce
        the amount of debug spew if we are not debugging.

svn path=/trunk/; revision=17619

17 years agofix typo: testtoooltips_SOURCES -> testtooltips_SOURCES.
Michael Natterer [Mon, 23 Apr 2007 16:06:56 +0000 (16:06 +0000)]
fix typo: testtoooltips_SOURCES -> testtooltips_SOURCES.

2007-04-23  Michael Natterer  <mitch@imendio.com>

* tests/Makefile.am (testtooltips_SOURCES): fix typo:
testtoooltips_SOURCES -> testtooltips_SOURCES.

svn path=/trunk/; revision=17617

17 years agoFix menuitem rendering in Vista
Cody Russell [Thu, 19 Apr 2007 17:24:57 +0000 (17:24 +0000)]
Fix menuitem rendering in Vista

svn path=/trunk/; revision=17614

17 years agoFix pixbuf leaks in non-WinXP rendering paths. From Daniel Atallah
Dominic Lachowicz [Thu, 19 Apr 2007 14:42:12 +0000 (14:42 +0000)]
Fix pixbuf leaks in non-WinXP rendering paths. From Daniel Atallah

2007-04-19  Dominic Lachowicz <domlachowicz@gmail.com>

        * modules/engines/ms-windows/msw_style.c: Fix pixbuf leaks in
        non-WinXP rendering paths. From Daniel Atallah (#403470)

svn path=/trunk/; revision=17613

17 years agoAdd GTK_ICON_LOOKUP_GENERIC_FALLBACK icon lookup flag and implement it.
Matthias Clasen [Thu, 19 Apr 2007 04:14:39 +0000 (04:14 +0000)]
Add GTK_ICON_LOOKUP_GENERIC_FALLBACK icon lookup flag and implement it.

2007-04-19  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkicontheme.h:
        * gtk/gtkicontheme.c: Add GTK_ICON_LOOKUP_GENERIC_FALLBACK
        icon lookup flag and implement it.  (#396901, Luca Ferreti)

svn path=/trunk/; revision=17611

17 years agoRefactor the process updates functions to share code between them. Also
Richard Hult [Wed, 18 Apr 2007 20:09:55 +0000 (20:09 +0000)]
Refactor the process updates functions to share code between them. Also

2007-04-18  Richard Hult  <richard@imendio.com>

* gdk/quartz/gdkwindow-quartz.c:
(gdk_window_quartz_process_updates_internal),
(gdk_window_quartz_process_all_updates),
(gdk_window_impl_quartz_process_updates): Refactor the process
updates functions to share code between them. Also fixes bug
#427660 by not updating larger regions than necessary.

svn path=/trunk/; revision=17610

17 years agoHandle a borderline case correctly
Matthias Clasen [Wed, 18 Apr 2007 15:19:58 +0000 (15:19 +0000)]
Handle a borderline case correctly

svn path=/trunk/; revision=17608

17 years agoFix a leak by not increasing the refcount of the GtkRecentInfo object when
Emmanuele Bassi [Wed, 18 Apr 2007 14:37:49 +0000 (14:37 +0000)]
Fix a leak by not increasing the refcount of the GtkRecentInfo object when

2007-04-18  Emmanuele Bassi  <ebassi@gnome.org>

* gtk/gtkrecentmanager.c (gtk_recent_manager_lookup_item): Fix
a leak by not increasing the refcount of the GtkRecentInfo
object when returning it (thanks to Matthias Clasen).

svn path=/trunk/; revision=17606

17 years agoMake async print preview work by actually starting the print process in
Alexander Larsson [Mon, 16 Apr 2007 08:57:35 +0000 (08:57 +0000)]
Make async print preview work by actually starting the print process in

2007-04-16  Alexander Larsson  <alexl@redhat.com>

* gtk/gtkprintoperation.c (gtk_print_operation_run):
Make async print preview work by actually starting
the print process in that case (#424168)

svn path=/trunk/; revision=17603

17 years agoUpdated Greek translation
Kostas Papadimas [Sun, 15 Apr 2007 10:03:43 +0000 (10:03 +0000)]
Updated Greek translation

svn path=/trunk/; revision=17601

17 years agofixed wrong g_convert_with_fallback() call which caused
Yevgen Muntyan [Sat, 14 Apr 2007 15:58:53 +0000 (15:58 +0000)]
fixed wrong g_convert_with_fallback() call which caused

2007-04-14  Yevgen Muntyan <muntyan@tamu.edu>

* gtk/gtkselection.c (selection_get_text_plain): fixed
wrong g_convert_with_fallback() call which caused
gtk_selection_data_get_text() return invalid UTF-8 for
non-ASCII text in text/plain selection (#382824).

svn path=/trunk/; revision=17600

17 years agoupdate the stock icons to follow the Tango le guidelines
Jakub Steiner [Wed, 11 Apr 2007 23:06:21 +0000 (23:06 +0000)]
update the stock icons to follow the Tango le guidelines

2007-04-12  Jakub Steiner <jimmac@ximian.com>

* gtk/stock-icons/*: update the stock icons to follow the Tango
le guidelines

svn path=/trunk/; revision=17599

17 years agoSwitch over to use glib's new g_hash_table_get_keys() rather than our own
Chris Wilson [Wed, 11 Apr 2007 17:48:20 +0000 (17:48 +0000)]
Switch over to use glib's new g_hash_table_get_keys() rather than our own

2007-04-11  Chris Wilson  <chris@chris-wilson.co.uk>

    * gtk/gtkiconfactory.c (_gtk_icon_factory_list_ids):
    * gtk/gtkstock.c (gtk_stock_list_ids):
        Switch over to use glib's new g_hash_table_get_keys() rather
        than our own static implementation.

    * gtk/gtkiconfactory.h: Update to return a GList.

    * configure.in: Bump required version to 2.13.1

svn path=/trunk/; revision=17597

17 years agoUpdated Czech Translation.
Jakub Friedl [Wed, 11 Apr 2007 15:25:06 +0000 (15:25 +0000)]
Updated Czech Translation.

2007-04-12  Jakub Friedl <jfriedl@suse.cz>

  * cs.po: Updated Czech Translation.

svn path=/trunk/; revision=17596

17 years agoProtect the polling thread setup and shutdown function by mutexes and read
Ronald Bultje [Wed, 11 Apr 2007 11:08:22 +0000 (11:08 +0000)]
Protect the polling thread setup and shutdown function by mutexes and read

        * gdk/quartz/gdkeventloop-quartz.c: Protect the polling thread
          setup and shutdown function by mutexes and read the wakeup
          pipe unconditionally and unblocking. This should make the main
          loop always be woken up when using g_idle_add() from another
          thread in the Quartz backend (#425271).

svn path=/trunk/; revision=17595

17 years agoUpdated Latvian Translation.
Raivis Dejus [Wed, 11 Apr 2007 08:32:17 +0000 (08:32 +0000)]
Updated Latvian Translation.

2007-04-11  Raivis Dejus <orvils@gmail.com>

        * lv.po: Updated Latvian Translation.

svn path=/trunk/; revision=17594

17 years agoChange the XSettingsWatchFunc to return a Bool to indicate success. Update
Matthias Clasen [Tue, 10 Apr 2007 23:16:30 +0000 (23:16 +0000)]
Change the XSettingsWatchFunc to return a Bool to indicate success. Update

2007-04-10  Matthias Clasen  <mclasen@redhat.com>

        * gdk/x11/xsettings-client.[hc]: Change the XSettingsWatchFunc
        to return a Bool to indicate success. Update callers and
        implementors. Based on a patch by Owen Taylor.

        * gdk/x11/gdkevents-x11.c (gdk_xsettings_watch_cb): Don't
        leak a reference to gdkwin.

svn path=/trunk/; revision=17592

17 years agoUpdated Estonian translation by Ivar Smolin <okul@linux.ee>.
Priit Laes [Tue, 10 Apr 2007 20:59:02 +0000 (20:59 +0000)]
Updated Estonian translation by Ivar Smolin <okul@linux.ee>.

2007-04-12  Priit Laes  <plaes@svn.gnome.org>

* et.po: Updated Estonian translation by Ivar Smolin <okul@linux.ee>.

svn path=/trunk/; revision=17591

17 years agoDuplicate the mime_type when storing it in a hash node, to avoid leaks.
Matthias Clasen [Mon, 9 Apr 2007 18:31:11 +0000 (18:31 +0000)]
Duplicate the mime_type when storing it in a hash node, to avoid leaks.

2007-04-09  Matthias Clasen  <mclasen@redhat.com>

        * xdgmimeglob.c (_xdg_glob_hash_insert_text): Duplicate the
        mime_type when storing it in a hash node, to avoid leaks.
        Update all callers.

svn path=/trunk/; revision=17589

17 years agoUpdated Turkish Translation
Baris Cicek [Sat, 7 Apr 2007 18:48:10 +0000 (18:48 +0000)]
Updated Turkish Translation

svn path=/trunk/; revision=17588

17 years agos/arrow-size/arrow-spacing in the arrow-spacing style property docs.
Xan Lopez [Sat, 7 Apr 2007 09:33:15 +0000 (09:33 +0000)]
s/arrow-size/arrow-spacing in the arrow-spacing style property docs.

* gtk/gtknotebook.c (gtk_notebook_class_init):
s/arrow-size/arrow-spacing in the arrow-spacing
style property docs.

svn path=/trunk/; revision=17585

17 years agoClean up namespaces to make the code more maintainable.
Richard Hult [Fri, 6 Apr 2007 21:12:48 +0000 (21:12 +0000)]
Clean up namespaces to make the code more maintainable.

2007-04-06  Richard Hult  <richard@imendio.com>

* gdk/quartz/: Clean up namespaces to make the code more
maintainable.

* gdk/quartz/gdkdrawable-quartz.c:
* gdk/quartz/gdkgc-quartz.c: Fix bug #418384, alignment of tiled
images, by setting the pattern phase for the CG pattern.

svn path=/trunk/; revision=17584

17 years agouse new gdk_threads API.
Kristian Rietveld [Wed, 4 Apr 2007 13:05:42 +0000 (13:05 +0000)]
use new gdk_threads API.

2007-04-04  Kristian Rietveld  <kris@imendio.com>

* gtk/gtktooltip.c (tooltip_browse_mode_expired),
(gtk_tooltip_hide_tooltip), (tooltip_popup_timeout),
(gtk_tooltip_start_delay): use new gdk_threads API.

svn path=/trunk/; revision=17583

17 years agoDon't set metrics-hinting font option. Rely on the default value which is
Behdad Esfahbod [Tue, 3 Apr 2007 23:17:11 +0000 (23:17 +0000)]
Don't set metrics-hinting font option. Rely on the default value which is

2007-04-03  Behdad Esfahbod  <behdad@gnome.org>

        * gtk/gtksettings.c (settings_update_font_options): Don't set
        metrics-hinting font option.  Rely on the default value which is
        on for all raster cairo surfaces. (#425985)

svn path=/trunk/; revision=17582

17 years agoRevert to non-xinerama mode when XineramaQueryScreens returns NULL; patch
Loïc Minier [Tue, 3 Apr 2007 13:48:26 +0000 (13:48 +0000)]
Revert to non-xinerama mode when XineramaQueryScreens returns NULL; patch

2007-04-03  Loïc Minier  <lool@dooz.org>

* gdk/x11/gdkscreen-x11.c: (check_xfree_xinerama): Revert to
non-xinerama mode when XineramaQueryScreens returns NULL; patch from
Simon McVittie; #425786.

svn path=/trunk/; revision=17579

17 years agoremove artifact from the time when type checking casts warned on NULL,
Michael Natterer [Mon, 2 Apr 2007 16:32:22 +0000 (16:32 +0000)]
remove artifact from the time when type checking casts warned on NULL,

2007-04-02  Michael Natterer  <mitch@imendio.com>

* gtk/gtkmenushell.c (gtk_real_menu_shell_move_current): remove
artifact from the time when type checking casts warned on NULL,
some whitespace cleanup.

svn path=/trunk/; revision=17578

17 years agoFix bottom-oriented notebook tabs on Win32. #399253
Cody Russell [Sun, 1 Apr 2007 18:50:38 +0000 (18:50 +0000)]
Fix bottom-oriented notebook tabs on Win32.  #399253

svn path=/trunk/; revision=17575

17 years agoPatch from Matthias to add support for the _NET_WM_USER_TIME_WINDOW EWMH
Elijah Newren [Sun, 1 Apr 2007 03:38:34 +0000 (03:38 +0000)]
Patch from Matthias to add support for the _NET_WM_USER_TIME_WINDOW EWMH

2007-03-31  Elijah Newren  <newren gmail com>

* gdk/x11/gdkwindow-x11.c (setup_toplevel_window,
  gdk_x11_window_set_user_time):
Patch from Matthias to add support for the
_NET_WM_USER_TIME_WINDOW EWMH protocol; see #354213.

WARNING: This patch will make metacity <= 2.18.0 freeze on
workspace switch.  This is due to a weird problem that should only
affect window managers using gdk in-process for decoration drawing
and which make an unsafe assumption relating to doing so (i.e. it
should only affect metacity).  Upgrade your version of metacity if
you hit this bug.

svn path=/trunk/; revision=17574

17 years agoDon't close menus on clicks on their border area (bug #423761). (modified
Michael Natterer [Thu, 29 Mar 2007 15:47:49 +0000 (15:47 +0000)]
Don't close menus on clicks on their border area (bug #423761). (modified

2007-03-29  Michael Natterer  <mitch@imendio.com>

Don't close menus on clicks on their border area (bug #423761).
(modified patch from maemo-gtk).

* gtk/gtkmenu.c (gtk_menu_button_press)
(gtk_menu_button_release): bail out early if the click was on the
menu's border (not on any item and not outside the window).

(pointer_in_menu_window): new utility function which checks if
passed root coords are inside the menu_shell or one of its
parent shells.

svn path=/trunk/; revision=17571

17 years agoget rid of local GtkSettings variables by moving gtk_widget_get_settings()
Michael Natterer [Thu, 29 Mar 2007 08:14:22 +0000 (08:14 +0000)]
get rid of local GtkSettings variables by moving gtk_widget_get_settings()

2007-03-29  Michael Natterer  <mitch@imendio.com>

* gtk/gtkmenu.c: get rid of local GtkSettings variables by moving
gtk_widget_get_settings() into the g_object_get() call. Some small
indentation fixes.

svn path=/trunk/; revision=17570

17 years agoSupport raw printers
Matthias Clasen [Wed, 28 Mar 2007 15:53:08 +0000 (15:53 +0000)]
Support raw printers

svn path=/trunk/; revision=17568

17 years agoapplied JPEG loader fix from maemo. this fix makes sure stop_load()
Tim Janik [Wed, 28 Mar 2007 13:29:17 +0000 (13:29 +0000)]
applied JPEG loader fix from maemo. this fix makes sure stop_load()

Wed Mar 28 15:27:35 2007  Tim Janik  <timj@imendio.com>

        * io-jpeg.c: applied JPEG loader fix from maemo. this fix makes sure
        stop_load() doesn't forget about its return value, and it pulls the
        check for infinite looping out of an else branch in load_increment()
        so it runs unconditionally, fixes #397643.

svn path=/trunk/; revision=17567

17 years agodon't unref tooltip_window, since this is handled by set_qdata_full()
Kristian Rietveld [Wed, 28 Mar 2007 10:00:31 +0000 (10:00 +0000)]
don't unref tooltip_window, since this is handled by set_qdata_full()

2007-03-28  Kristian Rietveld  <kris@imendio.com>

* gtk/gtkwidget.c (gtk_widget_set_tooltip_window): don't unref
tooltip_window, since this is handled by set_qdata_full() already.
(#412001, Torsten Schoenfeld).

svn path=/trunk/; revision=17566

17 years agoUse LDADDS for im-multipress.la, too:
Tor Lillqvist [Tue, 27 Mar 2007 22:11:38 +0000 (22:11 +0000)]
Use LDADDS for im-multipress.la, too:

2007-03-27  Tor Lillqvist  <tml@novell.com>

* modules/input/Makefile.am: Use LDADDS for im-multipress.la, too:

svn path=/trunk/; revision=17565

17 years agoInitialise variable. Bug #423064.
Christian Persch [Mon, 26 Mar 2007 21:00:17 +0000 (21:00 +0000)]
Initialise variable. Bug #423064.

2007-03-26  Christian Persch  <chpe@gnome.org>

* gtk/gtkrc.c: (gtk_rc_context_get): Initialise variable. Bug #423064.

svn path=/trunk/; revision=17564

17 years agocalculate the depth with the corrected real_cell_area and don't subtract
Kristian Rietveld [Sat, 24 Mar 2007 14:40:11 +0000 (14:40 +0000)]
calculate the depth with the corrected real_cell_area and don't subtract

2007-03-24  Kristian Rietveld  <kris@gtk.org>

* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action):
calculate the depth with the corrected real_cell_area and don't
subtract horizontal_separator/2.

svn path=/trunk/; revision=17562

17 years agofixed gtk-yes and gtk-no to tango style
Andreas Nilsson [Sat, 24 Mar 2007 12:32:12 +0000 (12:32 +0000)]
fixed gtk-yes and gtk-no to tango style

svn path=/trunk/; revision=17561

17 years agogtk-dialog-authentication.svg gtk-dialog-error.svg gtk-dialog-info.svg
Jakub Steiner [Fri, 23 Mar 2007 21:55:35 +0000 (21:55 +0000)]
gtk-dialog-authentication.svg gtk-dialog-error.svg gtk-dialog-info.svg

2007-03-23  Jakub Steiner <jimmac@ximian.com>

* gtk-dialog-authentication.svg
* gtk-dialog-error.svg
* gtk-dialog-info.svg
* gtk-dialog-question.svg
* gtk-dialog-warning.svg: Start with a Tango face-lift.

svn path=/trunk/; revision=17560

17 years agoFix a couple of comment typos (#421627)
Rodney Dawes [Fri, 23 Mar 2007 14:06:52 +0000 (14:06 +0000)]
Fix a couple of comment typos (#421627)

2007-03-23  Rodney Dawes  <dobey@novell.com>

* gtk/gtkicontheme.c: Fix a couple of comment typos (#421627)

svn path=/trunk/; revision=17559

17 years agoAdd a keybinding (C-h) to toggle whether to show hidden files. (#344657,
Matthias Clasen [Fri, 23 Mar 2007 05:13:56 +0000 (05:13 +0000)]
Add a keybinding (C-h) to toggle whether to show hidden files. (#344657,

2007-03-23  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkfilechooserdefault.c: Add a keybinding (C-h) to
        toggle whether to show hidden files.  (#344657,
        Wouter Bolsterlee, Priit Laes, et al)

svn path=/trunk/; revision=17557

17 years agoAdd a keybinding to toggle the visibility of the location entry. (#383354,
Matthias Clasen [Fri, 23 Mar 2007 05:06:00 +0000 (05:06 +0000)]
Add a keybinding to toggle the visibility of the location entry. (#383354,

2007-03-23  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkfilechooserdefault.c: Add a keybinding to
        toggle the visibility of the location entry.  (#383354,
        John Pye, patch by Carlos Garnacho)

svn path=/trunk/; revision=17555

17 years agoFreeze property notification. Handle the gtk-color-scheme xsetting being
Matthias Clasen [Thu, 22 Mar 2007 21:09:08 +0000 (21:09 +0000)]
Freeze property notification. Handle the gtk-color-scheme xsetting being

2007-03-22  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtksettings.c (merge_color_scheme): Freeze property
        notification.
        * gtk/gtksettings.c (_gtk_settings_handle_event): Handle
        the gtk-color-scheme xsetting being unset.

        * gtk/gtkrc.c (gtk_rc_reparse_all_for_settings): Handle
        recursion locally.

svn path=/trunk/; revision=17553

17 years agoRemove debug spew
Matthias Clasen [Thu, 22 Mar 2007 02:43:03 +0000 (02:43 +0000)]
Remove debug spew

svn path=/trunk/; revision=17551

17 years agoAdd a new API call gtk_icon_theme_list_contexts so that one can choose
Rodney Dawes [Wed, 21 Mar 2007 19:31:01 +0000 (19:31 +0000)]
Add a new API call gtk_icon_theme_list_contexts so that one can choose

2007-03-21  Rodney Dawes  <dobey@novell.com>

* gtk/gtk.symbols:
* gtk/gtkicontheme.[ch]:
* docs/reference/gtk/gtk-sections.txt:
* tests/testicontheme.c:
Add a new API call gtk_icon_theme_list_contexts so that one can
choose icons from a theme by context (#420719)

svn path=/trunk/; revision=17550

17 years agoUpdated Albanian translation.
Laurent Dhima [Wed, 21 Mar 2007 11:34:04 +0000 (11:34 +0000)]
Updated Albanian translation.

svn path=/trunk/; revision=17549

17 years agoDocument the ::event signal (#420703).
Ross Burton [Wed, 21 Mar 2007 07:29:52 +0000 (07:29 +0000)]
Document the ::event signal (#420703).

2007-03-21  Ross Burton  <ross@burtonini.com>

* gtk/gtktexttag.c:
Document the ::event signal (#420703).

svn path=/trunk/; revision=17547

17 years agoadd _gtk_tree_view_column_get_focus_area().
Kristian Rietveld [Tue, 20 Mar 2007 12:32:19 +0000 (12:32 +0000)]
add _gtk_tree_view_column_get_focus_area().

2007-03-20  Kristian Rietveld  <kris@gtk.org>

* gtk/gtktreeviewcolumn.c:
* gtk/gtktreeprivate.h: add _gtk_tree_view_column_get_focus_area().

* gtk/gtktreeview.c (gtk_tree_view_clamp_column_visible): add
focus_to_cell parameter, rework to handle clamping columns which
are bigger than the available page size better,
(gtk_tree_view_key_press): remove code handling moving the focus
to other column headers,
(gtk_tree_view_header_focus): add clamp_column_visible parameter,
fix RTL support, don't wrap around when moving focus to other
column headers, call gtk_tree_view_clamp_column_visible() instead
of duplicating code,
(gtk_tree_view_focus): only clamp the column visible when we are
explicitly moving to another column header (fixes #399555, Charles
Kerr),
(gtk_tree_view_move_cursor_left_right): update call to
gtk_tree_view_clamp_column_visible().

svn path=/trunk/; revision=17546

17 years agoAdd some hints about titles on about dialogs
Matthias Clasen [Mon, 19 Mar 2007 05:35:51 +0000 (05:35 +0000)]
Add some hints about titles on about dialogs

svn path=/trunk/; revision=17545