]> Pileus Git - ~andy/gtk/log
~andy/gtk
17 years agoHide the Credits button iff there are no credits to show. Bug #402806.
Christian Persch [Wed, 31 Jan 2007 18:40:32 +0000 (18:40 +0000)]
Hide the Credits button iff there are no credits to show. Bug #402806.

2007-01-31  Christian Persch  <chpe@svn.gnome.org>

* gtk/gtkaboutdialog.c: (update_credits_button_visibility),
(gtk_about_dialog_set_authors), (gtk_about_dialog_set_documenters),
(gtk_about_dialog_set_artists),
(gtk_about_dialog_set_translator_credits): Hide the Credits button iff
there are no credits to show. Bug #402806.

svn path=/trunk/; revision=17242

17 years agoNew debugging function. (_gdk_input_wintab_init_check): Call it when
Tor Lillqvist [Tue, 30 Jan 2007 23:49:39 +0000 (23:49 +0000)]
New debugging function. (_gdk_input_wintab_init_check): Call it when

2007-01-31  Tor Lillqvist  <tml@novell.com>

* gdk/win32/gdkinput-win32.c (print_cursor): New debugging
function.
(_gdk_input_wintab_init_check): Call it when debugging output is
requested.
(_gdk_input_wintab_init_check): Skip duplicated cursors for Wacom
tablets. The Wacom driver reports duplicated cursors with
physid==0. Fix verified by Robert *gren. (Should be U+00D6
there, but svn won't let me.)

svn path=/trunk/; revision=17241

17 years agoFix leaked string. Fixes bug #402565.
Felix Riemann [Tue, 30 Jan 2007 20:19:11 +0000 (20:19 +0000)]
Fix leaked string. Fixes bug #402565.

2007-01-30  Felix Riemann  <friemann@svn.gnome.org>

* modules/printbackends/file/gtkprintbackendfile.c:
(file_printer_get_options): Fix leaked string. Fixes bug #402565.

svn path=/trunk/; revision=17238

17 years agoBe more careful about toplevel possibly being NULL. (#402453, Sebastian
Matthias Clasen [Tue, 30 Jan 2007 18:36:44 +0000 (18:36 +0000)]
Be more careful about toplevel possibly being NULL. (#402453, Sebastian

2007-01-30  Matthias Clasen  <mclasen@redhat.com>

        * gdk/x11/gdkwindow-x11.c (gdk_x11_window_move_to_current_desktop):
        (gdk_x11_window_set_user_time): Be more careful about toplevel
        possibly being NULL.  (#402453, Sebastian Bacher)

svn path=/trunk/; revision=17236

17 years agocleaned up ::color-hash registration to not abuse class_n_properties and
Tim Janik [Tue, 30 Jan 2007 11:10:22 +0000 (11:10 +0000)]
cleaned up ::color-hash registration to not abuse class_n_properties and

Tue Jan 30 12:09:56 2007  Tim Janik  <timj@gtk.org>

        * gtk/gtksettings.c: cleaned up ::color-hash registration to not abuse
        class_n_properties and leave an uninitialized value array behind.

svn path=/trunk/; revision=17235

17 years agoqueue a draw on the parent_menu_item of this menu item's menu, to enable
Michael Natterer [Mon, 29 Jan 2007 15:45:18 +0000 (15:45 +0000)]
queue a draw on the parent_menu_item of this menu item's menu, to enable

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

* gtk/gtkmenuitem.c (gtk_menu_item_select)
(gtk_menu_item_deselect): queue a draw on the parent_menu_item of
this menu item's menu, to enable themeing menu items depending on
whether something is selected in their submenu (patch taken from
maemo-gtk).

svn path=/trunk/; revision=17234

17 years agoReinstate gtk_toolbar_content_new_compatibility() that was mistakenly
Matthias Clasen [Mon, 29 Jan 2007 03:24:09 +0000 (03:24 +0000)]
Reinstate gtk_toolbar_content_new_compatibility() that was mistakenly

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

        * gtk/gtktoolbar.c: Reinstate gtk_toolbar_content_new_compatibility()
        that was mistakenly "cleaned up" a while ago. Also
        revert a problematic change to the screen_changed
        handler.  (#401598, Søren Sandmann)

svn path=/trunk/; revision=17232

17 years agoFix a problem with large y thickness
Matthias Clasen [Sun, 28 Jan 2007 06:32:12 +0000 (06:32 +0000)]
Fix a problem with large y thickness

svn path=/trunk/; revision=17231

17 years agoUse canonical property names
Matthias Clasen [Sun, 28 Jan 2007 05:37:27 +0000 (05:37 +0000)]
Use canonical property names

svn path=/trunk/; revision=17230

17 years agoAvoid some unnecessary gtk_widget_get_style() calls.
Matthias Clasen [Sun, 28 Jan 2007 04:41:52 +0000 (04:41 +0000)]
Avoid some unnecessary gtk_widget_get_style() calls.

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

        * gtk/gtknotebook.c (gtk_notebook_draw_arrow):
        (gtk_notebook_draw_focus): Avoid some unnecessary
        gtk_widget_get_style() calls.

svn path=/trunk/; revision=17229

17 years agoFix a problem in the last change
Matthias Clasen [Sun, 28 Jan 2007 03:39:46 +0000 (03:39 +0000)]
Fix a problem in the last change

svn path=/trunk/; revision=17228

17 years agoRearrange things so that setting multiple properties causes not more than
Matthias Clasen [Sun, 28 Jan 2007 03:16:30 +0000 (03:16 +0000)]
Rearrange things so that setting multiple properties causes not more than

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

        * gtk/gtktoolbar.c:
        * gtk/gtktoolitem.c:
        * gtk/gtktoolbutton.c: Rearrange things so that setting
        multiple properties causes not more than a single
        reconstruction of the contents.

        * gtk/gtkaction.c (connect_proxy): Set all tool button
        properties in one go.

svn path=/trunk/; revision=17227

17 years agoFix GtkStatusIcon to not take up space on the panel if it is invisible.
Matthias Clasen [Sat, 27 Jan 2007 05:51:19 +0000 (05:51 +0000)]
Fix GtkStatusIcon to not take up space on the panel if it is invisible.

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

        * gtk/gtkstatusicon.c:
        * gtk/gtktrayicon-x11.c: Fix GtkStatusIcon to not
        take up space on the panel if it is invisible.  (340110, Christian
        Persch)

        * tests/teststatusicon.c:
        * tests/Makefile.am: Updates

svn path=/trunk/; revision=17224

17 years agoAdd deprecation guards for gtk_rc_style_ref/unref and the old file
Matthias Clasen [Sat, 27 Jan 2007 05:34:05 +0000 (05:34 +0000)]
Add deprecation guards for gtk_rc_style_ref/unref and the old file

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

        * gtk/gtkfilesel.h:
        * gtk/gtkrc.h:
        * gtk/gtk.symbols: Add deprecation guards for gtk_rc_style_ref/unref
        and the old file selector.  (#348256)

svn path=/trunk/; revision=17223

17 years agoDocumentation fixes (#400530, Anders Brander)
Matthias Clasen [Sat, 27 Jan 2007 04:36:08 +0000 (04:36 +0000)]
Documentation fixes (#400530, Anders Brander)

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

        * gtk/gtkiconview.c: Documentation fixes (#400530, Anders Brander)

svn path=/trunk/; revision=17222

17 years agoCheck the mtime of all directories, not just the toplevel, if ftw() is
Matthias Clasen [Sat, 27 Jan 2007 04:27:38 +0000 (04:27 +0000)]
Check the mtime of all directories, not just the toplevel, if ftw() is

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

        * gtk/updateiconcache.c: Check the mtime of all directories,
        not just the toplevel, if ftw() is available.  (#331671, Behdad
        Esfahbod)

        * configure.in: Check for ftw.h.

svn path=/trunk/; revision=17221

17 years agoAdded bug number to my last commit.
Michael Natterer [Fri, 26 Jan 2007 23:46:37 +0000 (23:46 +0000)]
Added bug number to my last commit.

svn path=/trunk/; revision=17219

17 years agodestroy the XIM only if it exists. While the code does look safe in
Michael Natterer [Fri, 26 Jan 2007 13:31:35 +0000 (13:31 +0000)]
destroy the XIM only if it exists. While the code does look safe in

2007-01-26  Michael Natterer  <mitch@imendio.com>

* modules/input/gtkimcontextxim.c (gtk_im_context_xim_finalize):
destroy the XIM only if it exists. While the code does look safe
in general, there can be corner cases where the "reconnecting"
boolean being FALSE does not correspond to the XIM being
allocated (fix taken from maemo-gtk).

svn path=/trunk/; revision=17218

17 years agoclamp cursor coordinates to window bounds (fix from Maemo Gtk).
Tim Janik [Fri, 26 Jan 2007 12:26:01 +0000 (12:26 +0000)]
clamp cursor coordinates to window bounds (fix from Maemo Gtk).

Fri Jan 26 13:07:07 2007  Tim Janik  <timj@imendio.com>

        * gtk/gtkstyle.c (draw_insertion_cursor): clamp cursor coordinates to
        window bounds (fix from Maemo Gtk).

svn path=/trunk/; revision=17217

17 years agoonly block/unblock completion->priv->insert_text_id if it is actually
Michael Natterer [Fri, 26 Jan 2007 11:39:16 +0000 (11:39 +0000)]
only block/unblock completion->priv->insert_text_id if it is actually

2007-01-26  Michael Natterer  <mitch@imendio.com>

* gtk/gtkentrycompletion.c (gtk_entry_completion_insert_prefix):
only block/unblock completion->priv->insert_text_id if it is
actually connected. While this can't happen the way GtkEntry
itself uses the completion, it's still public API and should not
blindly call functions that will spit warnings (fix taken from
maemo-gtk).

svn path=/trunk/; revision=17215

17 years agoReduce locking overhead by not repeatedly getting the paintable iface.
Matthias Clasen [Thu, 25 Jan 2007 14:24:53 +0000 (14:24 +0000)]
Reduce locking overhead by not repeatedly getting the paintable iface.

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

        * gdk/gdkwindow.c: Reduce locking overhead by not repeatedly getting
        the paintable iface.

svn path=/trunk/; revision=17213

17 years agorevert generic disabling of PRELIGHT state for the reasons given in bug
Michael Natterer [Wed, 24 Jan 2007 16:10:40 +0000 (16:10 +0000)]
revert generic disabling of PRELIGHT state for the reasons given in bug

2007-01-24  Michael Natterer  <mitch@imendio.com>

* gtk/gtkwidget.c (gtk_widget_set_state): revert generic disabling
of PRELIGHT state for the reasons given in bug #135666. Widget
states are sometimes abused or otherwise used wrongly for historic
reasons, causing this part of the patch to break e.g. menu items.

svn path=/trunk/; revision=17211

17 years agoRemove mention of no-longer-existing PATCH keyword in bugzilla. (#396899)
Roozbeh Pournader [Wed, 24 Jan 2007 13:01:52 +0000 (13:01 +0000)]
Remove mention of no-longer-existing PATCH keyword in bugzilla. (#396899)

2007-01-24  Roozbeh Pournader  <roozbeh@farsiweb.info>

* README: Remove mention of no-longer-existing PATCH
keyword in bugzilla. (#396899)

svn path=/trunk/; revision=17209

17 years agoFix memory leak. Fixes bug #399907.
Carlos Garcia Campos [Tue, 23 Jan 2007 21:28:29 +0000 (21:28 +0000)]
Fix memory leak. Fixes bug #399907.

2007-01-23  Carlos Garcia Campos  <carlosgc@gnome.org>
* gtk/gtkpagesetup.c
(gtk_page_setup_set_paper_size_and_default_margins): Fix memory leak.
Fixes bug #399907.

svn path=/trunk/; revision=17206

17 years agoUpdated Estonian translation by Ivar Smolin <okul@linux.ee>.
Priit Laes [Mon, 22 Jan 2007 22:32:09 +0000 (22:32 +0000)]
Updated Estonian translation by Ivar Smolin <okul@linux.ee>.

2007-01-23  Priit Laes  <plaes@svn.gnome.org>
* et.po: Updated Estonian translation by Ivar Smolin <okul@linux.ee>.

svn path=/trunk/; revision=17203

17 years agoBug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach
Chris Wilson [Mon, 22 Jan 2007 15:19:53 +0000 (15:19 +0000)]
Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach

2007-01-22  Chris Wilson <chris@chris-wilson.co.uk>

Bug 399314 – Add G_GNUC_WARN_UNUSED_RESULT to gtk_style_attach

* gtk/gtkstyle.h:
Cause gcc to issue a warning if the style returned from
gtk_style_attach is not used. Failure to update
widget->style causes some very difficult to identify bugs,
eg Bug 353498 – crash in Terminal: changing icon theme.

svn path=/trunk/; revision=17199

17 years agoFix error reporting in the gif loader
Matthias Clasen [Sun, 21 Jan 2007 17:27:23 +0000 (17:27 +0000)]
Fix error reporting in the gif loader

svn path=/trunk/; revision=17197

17 years agoMouse crossing fixes from Attilio
Michael David Emmel [Sat, 20 Jan 2007 07:05:55 +0000 (07:05 +0000)]
Mouse crossing fixes from Attilio

svn path=/trunk/; revision=17195

17 years agofix build breakage
Matthias Clasen [Fri, 19 Jan 2007 15:12:58 +0000 (15:12 +0000)]
fix build breakage

svn path=/trunk/; revision=17193

17 years agofactor out add_scroll_timeout(). (taken from maemo-gtk).
Kristian Rietveld [Fri, 19 Jan 2007 10:32:42 +0000 (10:32 +0000)]
factor out add_scroll_timeout(). (taken from maemo-gtk).

2007-01-19  Kristian Rietveld  <kris@imendio.com>

* gtk/gtktreeview.c (gtk_tree_view_motion_bin_window),
(add_scroll_timeout), (gtk_tree_view_drag_motion): factor out
add_scroll_timeout().  (taken from maemo-gtk).

svn path=/trunk/; revision=17192

17 years agoFix problems with the initial focus in GtkCalendar. (#397783, Vincent
Matthias Clasen [Fri, 19 Jan 2007 03:52:03 +0000 (03:52 +0000)]
Fix problems with the initial focus in GtkCalendar. (#397783, Vincent

2007-01-18  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkcalendar.c: Fix problems with the initial
        focus in GtkCalendar.  (#397783, Vincent Untz)

svn path=/trunk/; revision=17190

17 years agoFix for bug #143460 - missed tablet clicks on Windows
Robert Oegren [Fri, 19 Jan 2007 02:38:46 +0000 (02:38 +0000)]
Fix for bug #143460 - missed tablet clicks on Windows

2007-01-19  Robert Oegren  <gtk@roboros.com>

Fix for bug #143460 - missed tablet clicks on Windows

* gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check):
Request absolute reporting of tablet button state, and cut down
the packet queue size a bit.
(_gdk_input_other_event): Change button state handling
accordingly. Also drop the no longer necessary code that detects
missed clicks/releases for button 1. The switch to absolute button
state should prevent missed events for all buttons. Additionally,
swap button 2 and 3.
(_gdk_input_grab_pointer): Don't reset button_state, that will only
cause a new press event as soon as the next tablet packet arrives.

svn path=/trunk/; revision=17188

17 years agoStrip some trailing blanks
Tor Lillqvist [Fri, 19 Jan 2007 02:09:57 +0000 (02:09 +0000)]
Strip some trailing blanks

svn path=/trunk/; revision=17187

17 years agoBuild Wintab support always on Windows. Don't require the Wintab SDK.
Tor Lillqvist [Fri, 19 Jan 2007 01:55:52 +0000 (01:55 +0000)]
Build Wintab support always on Windows. Don't require the Wintab SDK.

2007-01-19  Tor Lillqvist  <tml@novell.com>

Build Wintab support always on Windows. Don't require the Wintab
SDK.

* configure.in: Drop the --with-wintab option. Drop the
HAVE_WINTAB feature test macro and Automake variable.

* acconfig.h
* config.h.win32.in: Drop HAVE_WINTAB.

* gdk/win32/gdkevents-win32.c
* gdk/win32/gdkinput.c
* gdk/win32/gdkinput-win32.h
* gdk/win32/gdkinput-win32.c
* gdk/win32/gdkmain-win32.c: Make HAVE_WINTAB ifdef blocks
unconditional.

* gdk/win32/gdkinput-win32.c (_gdk_input_wintab_init_check): Try
to load wintab32.dll dynamically here. If it is found look up the
handful Wintab functions we use.
(rest of file): Use these function pointers instead of calling the
functions from wntab32x.lib. The code in wntab32x.lib did the same
thing anyway: tried to load wintab32.dll, and looked up the
addresses of the actual functions from it.

* gdk/Makefile.am
* gdk/win32/Makefile.am: Drop the libwntab32x hacks.

* gdk/win32/wintab.h
* gdk/win32/pktdef.h: New files. Copied from the Wintab
SDK. Copyright blurb says: "The text and information contained in
this file may be freely used, copied, or distributed without
compensation or licensing restrictions."

* README.win32: Update a bit. Remove the text about the Wintab
SDK.

svn path=/trunk/; revision=17186

17 years agogdk-pixbuf/Makefile.am gdk/Makefile.am gdk/win32/Makefile.am Fixes for
Tor Lillqvist [Fri, 19 Jan 2007 00:06:01 +0000 (00:06 +0000)]
gdk-pixbuf/Makefile.am gdk/Makefile.am gdk/win32/Makefile.am Fixes for

2007-01-18  Tor Lillqvist  <tml@novell.com>

* gdk-pixbuf/Makefile.am
* gdk/Makefile.am
* gdk/win32/Makefile.am
* gtk/Makefile.am: Fixes for building outside srcdir on
Win32. (#336819, #340113) Drop distributing the handmade .la
libtool wrapper for the wntab32x library. It's too much trouble
making it work when building outside srcdir. Just link to the
library direcly using -Wl,win32/libwntab32x.a.

svn path=/trunk/; revision=17185

17 years agogtk/gtkcheckbutton.c gtk/gtkdnd.c gtk/gtkentry.c gtk/gtkmenu.c
Michael Natterer [Thu, 18 Jan 2007 17:30:10 +0000 (17:30 +0000)]
gtk/gtkcheckbutton.c gtk/gtkdnd.c gtk/gtkentry.c gtk/gtkmenu.c

2007-01-18  Michael Natterer  <mitch@imendio.com>

* gtk/gtkcheckbutton.c
* gtk/gtkdnd.c
* gtk/gtkentry.c
* gtk/gtkmenu.c
* gtk/gtktreeview.c
* gtk/gtkviewport.c: pass more clip rectangles to gtk_paint_foo()
functions. Based on a patch from maemo-gtk (bug #398023).

svn path=/trunk/; revision=17183

17 years agoTranslation updated.
Gabor Kelemen [Wed, 17 Jan 2007 23:54:39 +0000 (23:54 +0000)]
Translation updated.

2007-01-18  Gabor Kelemen  <kelemeng@gnome.hu>

* hu.po: Translation updated.

svn path=/trunk/; revision=17182

17 years agoPatch taken from maemo-gtk:
Michael Natterer [Wed, 17 Jan 2007 14:07:01 +0000 (14:07 +0000)]
Patch taken from maemo-gtk:

2007-01-17  Michael Natterer  <mitch@imendio.com>

Patch taken from maemo-gtk:

* io-png.c (png_text_to_pixbuf_option): don't call g_convert() on
ASCII strings.

(png_info_callback): set an error when the size_func would scale
the pixbuf away completely.

svn path=/trunk/; revision=17179

17 years agoTypos.
Tor Lillqvist [Wed, 17 Jan 2007 13:16:01 +0000 (13:16 +0000)]
Typos.

svn path=/trunk/; revision=17177

17 years agofix the build
Matthias Clasen [Wed, 17 Jan 2007 13:14:08 +0000 (13:14 +0000)]
fix the build

svn path=/trunk/; revision=17175

17 years agoInclude also the COPYING file.
Tor Lillqvist [Wed, 17 Jan 2007 13:12:27 +0000 (13:12 +0000)]
Include also the COPYING file.

2007-01-17  Tor Lillqvist  <tml@novell.com>

* gtk-zip.sh.in: Include also the COPYING file.

svn path=/trunk/; revision=17174

17 years agoDon't use httpGetFd() when building against cups 1.1
Matthias Clasen [Wed, 17 Jan 2007 06:10:08 +0000 (06:10 +0000)]
Don't use httpGetFd() when building against cups 1.1

2007-01-17  Matthias Clasen  <mclasen@redhat.com>

        * modules/printbackends/cups/gtkprintbackendcups.c: Don't use
        httpGetFd() when building against cups 1.1

svn path=/trunk/; revision=17170

17 years agoFix memory leaks in error paths
Matthias Clasen [Wed, 17 Jan 2007 04:24:00 +0000 (04:24 +0000)]
Fix memory leaks in error paths

svn path=/trunk/; revision=17165

17 years agoImprove last entry.
Tor Lillqvist [Wed, 17 Jan 2007 01:25:32 +0000 (01:25 +0000)]
Improve last entry.

svn path=/trunk/; revision=17163

17 years agoProper fix for #396175:
Tor Lillqvist [Wed, 17 Jan 2007 01:18:42 +0000 (01:18 +0000)]
Proper fix for #396175:

2007-01-17  Tor Lillqvist  <tml@novell.com>

Proper fix for #396175:

* gtk/gtkimmulticontext.c: Revert change by Hans Breuer below: Do
include gtkprivate.h. On Win32 we do want to use the redefinition
of GTK_LOCALEDIR as a call to the function _gtk_get_localedir().

* gtk/gtkimmodule.c: Instead, correct the prefix also on
simple_context_info.domain_dirname. Do the prefix corrections
always on Win32, not just when GTK_LIBDIR is defined. i.e., until
now they were done only in the autoconfiscated gcc builds. Hans
needs to make sure GTK_LIBDIR and GTK_LOCALEDIR are defined also
in MSVC builds now.
(correct_localedir_prefix): New function, like
correct_libdir_prefix(), but for GTK_LOCALEDIR.
(_gtk_im_module_list): Call correct_localedir_prefix() on
simple_context_info.domain_dirname.

svn path=/trunk/; revision=17161

17 years agoQueue a redraw when the grab changes. (#396470, Benjamin Berg)
Matthias Clasen [Tue, 16 Jan 2007 14:17:12 +0000 (14:17 +0000)]
Queue a redraw when the grab changes. (#396470, Benjamin Berg)

2007-01-16  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkrange.c (range_grab_remove): Queue a redraw when the
        grab changes.  (#396470, Benjamin Berg)

svn path=/trunk/; revision=17159

17 years agoEllipsize the menu items label if they grow too much. (#357303)
Emmanuele Bassi [Mon, 15 Jan 2007 12:44:28 +0000 (12:44 +0000)]
Ellipsize the menu items label if they grow too much. (#357303)

2007-01-15  Emmanuele Bassi  <ebassi@gnome.org>

* gtk/gtkrecentchoosermenu.c: Ellipsize the menu items label
if they grow too much. (#357303)

svn path=/trunk/; revision=17156

17 years agoWhen finding a matching non-scalable dir, keep going and look for a closer
Matthias Clasen [Mon, 15 Jan 2007 02:56:33 +0000 (02:56 +0000)]
When finding a matching non-scalable dir, keep going and look for a closer

2007-01-14  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkicontheme.c (theme_lookup_icon): When finding a matching
        non-scalable dir, keep going and look for a closer match.
        (#395830, Luca Ferretti)

svn path=/trunk/; revision=17153

17 years agoUse gtk_target_table_new_from_list and gtk_target_table_free instead of
Christian Persch [Sun, 14 Jan 2007 18:47:36 +0000 (18:47 +0000)]
Use gtk_target_table_new_from_list and gtk_target_table_free instead of

2007-01-14  Christian Persch  <chpe@svn.gnome.org>

* gtk/gtkclipboard.c: (gtk_clipboard_set_text),
(gtk_clipboard_set_image): Use gtk_target_table_new_from_list and
gtk_target_table_free instead of duplicating the code. Bug #396493.

svn path=/trunk/; revision=17152

17 years agoUpdated Bulgarian translation by Alexander Shopov <ash@contact.bg>
Alexander Shopov [Sun, 14 Jan 2007 17:38:06 +0000 (17:38 +0000)]
Updated Bulgarian translation by Alexander Shopov <ash@contact.bg>

2007-01-14  Alexander Shopov  <ash@contact.bg>

* bg.po: Updated Bulgarian translation by
Alexander Shopov <ash@contact.bg>

svn path=/trunk/; revision=17149

17 years agoDon't crash if menu or toolbar positions can't be found. (#396161, Hans
Matthias Clasen [Sun, 14 Jan 2007 05:31:46 +0000 (05:31 +0000)]
Don't crash if menu or toolbar positions can't be found. (#396161, Hans

2007-01-13  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkuimanager.c: Don't crash if menu or toolbar
        positions can't be found.  (#396161, Hans Breuer)

svn path=/trunk/; revision=17147

17 years agoPlug memory leaks. (#396160, Carlos Garcia Campos)
Matthias Clasen [Sun, 14 Jan 2007 05:14:21 +0000 (05:14 +0000)]
Plug memory leaks. (#396160, Carlos Garcia Campos)

2007-01-13  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkselection.c (_gtk_selection_request): Plug
        memory leaks.  (#396160, Carlos Garcia Campos)

svn path=/trunk/; revision=17145

17 years agoLink libgtk against Xfixes. (#396074, Tommi Komulainen)
Matthias Clasen [Sun, 14 Jan 2007 05:00:36 +0000 (05:00 +0000)]
Link libgtk against Xfixes. (#396074, Tommi Komulainen)

2007-01-13  Matthias Clasen  <mclasen@redhat.com>

        * configure.in: Link libgtk against Xfixes.  (#396074,
        Tommi Komulainen)

svn path=/trunk/; revision=17143

17 years agoAvoid a compiler warning. (#395045, Chris Wilson)
Matthias Clasen [Sun, 14 Jan 2007 04:30:06 +0000 (04:30 +0000)]
Avoid a compiler warning. (#395045, Chris Wilson)

2007-01-13  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkradiobutton.c (gtk_radio_button_focus): Avoid
        a compiler warning.  (#395045, Chris Wilson)

svn path=/trunk/; revision=17141

17 years agotake the custom tab label from gtk_print_operation_set_custom_tab_label()
Hans Breuer [Sat, 13 Jan 2007 22:18:06 +0000 (22:18 +0000)]
take the custom tab label from gtk_print_operation_set_custom_tab_label()

2007-01-13  Hans Breuer <hans@breuer.org>

* gtk/gtkprintoperation-win32.c : take the custom tab label from
gtk_print_operation_set_custom_tab_label() into account (bug #390746).

svn path=/trunk/; revision=17139

17 years agodon't include "gtkprivate.h" to avoid differing definitions of
Hans Breuer [Sat, 13 Jan 2007 21:13:28 +0000 (21:13 +0000)]
don't include "gtkprivate.h" to avoid differing definitions of

2007-01-13  Hans Breuer <hans@breuer.org>

* gtk/gtkimmulticontext.c : don't include "gtkprivate.h" to avoid
differing definitions of GTK_LOCALEDIR (bug #396175).

* gtk/gtktreeview.c : use g_snprintf instead of snprintf, which is
not available everywhere

* gtk/makefile.msc.in : updated

svn path=/trunk/; revision=17137

17 years agodon't add entry->scroll_offset to entry->drag_start_y. Fixes the entry
Michael Natterer [Fri, 12 Jan 2007 11:56:57 +0000 (11:56 +0000)]
don't add entry->scroll_offset to entry->drag_start_y. Fixes the entry

2007-01-12  Michael Natterer  <mitch@imendio.com>

* gtk/gtkentry.c (gtk_entry_button_press): don't add
entry->scroll_offset to entry->drag_start_y. Fixes the entry
starting drags after ridiculously small mouse movements.

svn path=/trunk/; revision=17134

17 years agoClose the file after it's loaded (bug #395316).
Richard Hult [Thu, 11 Jan 2007 14:26:51 +0000 (14:26 +0000)]
Close the file after it's loaded (bug #395316).

2007-01-11  Richard Hult  <richard@imendio.com>

* demos/gtk-demo/main.c: (load_file): Close the file after it's
loaded (bug #395316).

svn path=/trunk/; revision=17132

17 years agoMake a single tilde go to $HOME in the location entry. Patch from Yevgen
Kjartan Maraas [Thu, 11 Jan 2007 00:53:00 +0000 (00:53 +0000)]
Make a single tilde go to $HOME in the location entry. Patch from Yevgen

2007-01-11  Kjartan Maraas  <kmaraas@gnome.org>

* gtk/gtkfilesystemunix.c: (expand_tilde):
Make a single tilde go to $HOME in the location entry.
Patch from Yevgen Muntyan. Closes the gtk+ part of
bug #334168.

svn path=/trunk/; revision=17130

17 years agoUse pango_matrix_transform_rectangle(). (#340141)
Behdad Esfahbod [Wed, 10 Jan 2007 20:21:26 +0000 (20:21 +0000)]
Use pango_matrix_transform_rectangle(). (#340141)

2007-01-10  Behdad Esfahbod  <behdad@gnome.org>

        * gdk/gdkpango.c (gdk_draw_layout_with_colors):
        * gtk/gtklabel.c (gtk_label_size_request):
        Use pango_matrix_transform_rectangle(). (#340141)

        * configure.in: Bump pango requirement to 1.15.3.

svn path=/trunk/; revision=17129

17 years agorefactor to initialize indicator_size to TOGGLE_WIDTH instead of the
Kristian Rietveld [Wed, 10 Jan 2007 17:33:23 +0000 (17:33 +0000)]
refactor to initialize indicator_size to TOGGLE_WIDTH instead of the

2007-01-10  Kristian Rietveld  <kris@imendio.com>

* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_init):
refactor to initialize indicator_size to TOGGLE_WIDTH instead
of the hardcoded value of 12.

svn path=/trunk/; revision=17128

17 years agoFix the directfb cairo test. (#394855, Josselin Mouette)
Matthias Clasen [Wed, 10 Jan 2007 04:51:27 +0000 (04:51 +0000)]
Fix the directfb cairo test. (#394855, Josselin Mouette)

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

        * configure.in: Fix the directfb cairo test. (#394855,
        Josselin Mouette)

svn path=/trunk/; revision=17125

17 years agoUpdated Bulgarian translation by Alexander Shopov <ash@contact.bg>
Alexander Shopov [Wed, 10 Jan 2007 00:00:12 +0000 (00:00 +0000)]
Updated Bulgarian translation by Alexander Shopov <ash@contact.bg>

2007-01-10  Alexander Shopov  <ash@contact.bg>

        * bg.po: Updated Bulgarian translation by
        Alexander Shopov <ash@contact.bg>

svn path=/trunk/; revision=17124

17 years agoFix comment for --with-included-loaders. That option affects builds with
Behdad Esfahbod [Tue, 9 Jan 2007 21:43:28 +0000 (21:43 +0000)]
Fix comment for --with-included-loaders. That option affects builds with

2007-01-09  Behdad Esfahbod  <behdad@gnome.org>

        * configure.in: Fix comment for --with-included-loaders.  That option
        affects builds with module loading enabled too.

svn path=/trunk/; revision=17123

17 years agoSave the expanded state of the folder browser with the file chooser
Peter Teichman [Mon, 8 Jan 2007 18:34:06 +0000 (18:34 +0000)]
Save the expanded state of the folder browser with the file chooser

* gtk/gtkfilechooserdefault.c:
* gtk/gtkfilechooserprivate.h:
* gtk/gtkfilechoosersettings.c:
* gtk/gtkfilechoosersettings.h:
Save the expanded state of the folder browser with the file
chooser settings.  Resolves the expander portions of (#153828,
Lemmit Kaplinski)

svn path=/trunk/; revision=17121

17 years agoDon't leak the icon pixbuf after setting it to the image menu item. Found
Emmanuele Bassi [Mon, 8 Jan 2007 16:47:19 +0000 (16:47 +0000)]
Don't leak the icon pixbuf after setting it to the image menu item. Found

2007-01-08  Emmanuele Bassi  <ebassi@gnome.org>

* gtk/gtkrecentchoosermenu.c (gtk_recent_chooser_menu_create_item):
Don't leak the icon pixbuf after setting it to the image menu
item.  Found by Paolo Borelli.

svn path=/trunk/; revision=17119

17 years agoupdates
Matthias Clasen [Mon, 8 Jan 2007 15:29:02 +0000 (15:29 +0000)]
updates

svn path=/trunk/; revision=17118

17 years agoDon't corrupt memory when faced with paths with ridiculously large
Matthias Clasen [Mon, 8 Jan 2007 14:49:30 +0000 (14:49 +0000)]
Don't corrupt memory when faced with paths with ridiculously large

2007-01-08  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtktreemodel.c (gtk_tree_path_to_string): Don't
        corrupt memory when faced with paths with ridiculously
        large indices. Found by the GTKVTS test suite.

svn path=/trunk/; revision=17116

17 years agoSet default_display_opened before loading modules. (#393102, Brian
Matthias Clasen [Mon, 8 Jan 2007 13:08:10 +0000 (13:08 +0000)]
Set default_display_opened before loading modules. (#393102, Brian

2007-01-08  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkmodules.c (_gtk_modules_init): Set
        default_display_opened before loading modules.  (#393102,
        Brian Cameron)

svn path=/trunk/; revision=17114

17 years agoDon't return "" as match. (fd.o #9544, Yevgen Muntyan)
Matthias Clasen [Mon, 8 Jan 2007 04:21:17 +0000 (04:21 +0000)]
Don't return "" as match. (fd.o #9544, Yevgen Muntyan)

2007-01-07  Matthias Clasen  <mclasen@redhat.com>

* xdgmimecache.c (cache_glob_node_lookup_suffix): Don't return ""
as match.  (fd.o #9544, Yevgen Muntyan)

svn path=/trunk/; revision=17112

17 years agoFix several problems with this function. (fd.o #9560, Yevgen Muntyan)
Matthias Clasen [Mon, 8 Jan 2007 03:39:41 +0000 (03:39 +0000)]
Fix several problems with this function. (fd.o #9560, Yevgen Muntyan)

2007-01-07  Matthias Clasen  <mclasen@redhat.com>

        * xdgmimecache.c (_xdg_mime_cache_list_mime_parents): Fix
        several problems with this function.  (fd.o #9560, Yevgen Muntyan)

svn path=/trunk/; revision=17110

17 years agoCorrect the include for GdkPixdata. (#394000, Samuel Cormier-Iijima)
Matthias Clasen [Sun, 7 Jan 2007 20:04:37 +0000 (20:04 +0000)]
Correct the include for GdkPixdata. (#394000, Samuel Cormier-Iijima)

2007-01-07  Matthias Clasen  <mclasen@redhat.com>

        * gdk-pixbuf/gdk-pixbuf-sections.txt: Correct the include
        for GdkPixdata.  (#394000, Samuel Cormier-Iijima)

svn path=/trunk/; revision=17108

17 years agoupdatingfor bug 355790 by alam
Amanpreet Singh Alam [Sun, 7 Jan 2007 18:06:49 +0000 (18:06 +0000)]
updatingfor bug 355790 by alam

svn path=/trunk/; revision=17107

17 years agoCall text_window_realize() with the correct parameters. (#393813, Yevgen
Matthias Clasen [Sun, 7 Jan 2007 07:19:07 +0000 (07:19 +0000)]
Call text_window_realize() with the correct parameters. (#393813, Yevgen

2007-01-07  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtktextview.c (gtk_text_view_set_border_window_size):
        Call text_window_realize() with the correct parameters.
        (#393813, Yevgen Muntyan)

svn path=/trunk/; revision=17101

17 years agoMove docs inline and expand them a bit.
Matthias Clasen [Sun, 7 Jan 2007 05:34:40 +0000 (05:34 +0000)]
Move docs inline and expand them a bit.

2007-01-07  Matthias Clasen  <mclasen@redhat.com>

* gtk/tmpl/gtkstatusbar.sgml: Move docs inline and
expand them a bit.

svn path=/trunk/; revision=17100

17 years agoFix the build
Matthias Clasen [Sun, 7 Jan 2007 04:23:52 +0000 (04:23 +0000)]
Fix the build

svn path=/trunk/; revision=17099

17 years agoMake line wrapping work with width-chars and max-width-chars, and simplify
Matthias Clasen [Sun, 7 Jan 2007 00:52:26 +0000 (00:52 +0000)]
Make line wrapping work with width-chars and max-width-chars, and simplify

2007-01-06  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtklabel.c: Make line wrapping work with width-chars
        and max-width-chars, and simplify the storage of wrap-width.
        (#322580, Itai Bar-Haim)

svn path=/trunk/; revision=17098

17 years agoNew file. Downloaded from freedesktop.org's webcvs. Slighly edited cursors
Tor Lillqvist [Sat, 6 Jan 2007 03:05:37 +0000 (03:05 +0000)]
New file. Downloaded from freedesktop.org's webcvs. Slighly edited cursors

2007-01-06  Tor Lillqvist  <tml@novell.com>

* gdk/win32/cursor.bdf: New file. Downloaded from
freedesktop.org's webcvs. Slighly edited cursors "crosshair",
"diamond_cross", "draft_large", "gobbler" and "target" to fix
#392504. It is possible that the same end result could have been
achieved by tweaking bdfcursor.c instead.

* gdk/win32/bdfcursor.c: Add optional debugging output.

* gdk/win32/xcursors.h: Regenerated.

svn path=/trunk/; revision=17096

17 years agoLeft-align menu labels. (#393255, Michail Crayson)
Matthias Clasen [Sat, 6 Jan 2007 03:02:31 +0000 (03:02 +0000)]
Left-align menu labels. (#393255, Michail Crayson)

2007-01-05  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtknotebook.c (gtk_notebook_set_menu_label_text): Left-align
        menu labels.  (#393255, Michail Crayson)

svn path=/trunk/; revision=17095

17 years agowhoops, fix the changelog again :P
Kristian Rietveld [Fri, 5 Jan 2007 22:15:57 +0000 (22:15 +0000)]
whoops, fix the changelog again :P

svn path=/trunk/; revision=17093

17 years agohandle tree == NULL. (Fixes #392259, reported by Christian Persch).
Kristian Rietveld [Fri, 5 Jan 2007 22:14:08 +0000 (22:14 +0000)]
handle tree == NULL. (Fixes #392259, reported by Christian Persch).

2007-01-05  Kristian Rietveld  <kris@gtk.org>

* gtk/gtktreeview.c (gtk_tree_view_dy_to_top_row): handle tree
== NULL.  (Fixes #392259, reported by Christian Persch).

svn path=/trunk/; revision=17092

17 years agofix changelog
Kristian Rietveld [Fri, 5 Jan 2007 21:37:53 +0000 (21:37 +0000)]
fix changelog

svn path=/trunk/; revision=17091

17 years agodo allow for invalidated nodes if the tree view is not realized. (#363147,
Kristian Rietveld [Fri, 5 Jan 2007 21:34:58 +0000 (21:34 +0000)]
do allow for invalidated nodes if the tree view is not realized. (#363147,

2007-01-05  Kristian Rietveld  <kris@gtk.org>

* gtk/gtktreeview.c (gtk_tree_view_row_changed): do allow for
invalidated nodes if the tree view is not realized. (#363147,
Carlos Garnacho, Miguel Cabrera).

svn path=/trunk/; revision=17089

17 years agoTake the scroll arrow into account when drawing the background. (#393166,
Matthias Clasen [Fri, 5 Jan 2007 18:24:00 +0000 (18:24 +0000)]
Take the scroll arrow into account when drawing the background. (#393166,

2007-01-05  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkmenu.c (gtk_menu_paint): Take the scroll arrow into
        account when drawing the background.  (#393166, Benjamin Berg)

svn path=/trunk/; revision=17084

17 years agoFix broken width computation, again.
Behdad Esfahbod [Fri, 5 Jan 2007 18:05:15 +0000 (18:05 +0000)]
Fix broken width computation, again.

2007-01-05  Behdad Esfahbod  <behdad@gnome.org>

        * gtk/gtklabel.c (get_layout_location): Fix broken width computation,
        again.

svn path=/trunk/; revision=17083

17 years agotake into account both scroll arrows when calculating size request in
Carlos Garnacho [Fri, 5 Jan 2007 17:29:49 +0000 (17:29 +0000)]
take into account both scroll arrows when calculating size request in

2007-01-05  Carlos Garnacho  <carlosg@gnome.org>

        * gtk/gtknotebook.c (gtk_notebook_size_request): take into account
        both scroll arrows when calculating size request in GTK_POS_LEFT or
        GTK_POS_RIGHT notebooks. (#393124, reported by Christian Persch)

svn path=/trunk/; revision=17080

17 years agochain up to the right function (fix taken from maemo-gtk).
Michael Natterer [Fri, 5 Jan 2007 14:07:17 +0000 (14:07 +0000)]
chain up to the right function (fix taken from maemo-gtk).

2007-01-05  Michael Natterer  <mitch@imendio.com>

* gtk/gtkwindow.c (gtk_window_key_release_event): chain up to
the right function (fix taken from maemo-gtk).

svn path=/trunk/; revision=17078

17 years agoupdated hebrew translation
Yair Hershkovitz [Fri, 5 Jan 2007 11:12:12 +0000 (11:12 +0000)]
updated hebrew translation

svn path=/trunk/; revision=17077

17 years agoAvoid overflow when converting coordinates to Pango units. (#332266, Jody
Behdad Esfahbod [Fri, 5 Jan 2007 06:16:32 +0000 (06:16 +0000)]
Avoid overflow when converting coordinates to Pango units. (#332266, Jody

2007-01-05  Behdad Esfahbod  <behdad@gnome.org>

        * gdk/gdkprivate.h:
        * gdk/gdkpango.c (gdk_draw_layout_line_with_colors),
        (gdk_draw_layout_with_colors):
        * gdk/gdkwindow.c (gdk_window_draw_glyphs_transformed):
        Avoid overflow when converting coordinates to Pango units. (#332266,
        Jody Goldberg)

svn path=/trunk/; revision=17075

17 years agomove set_cursor after realization of the popup window, so clamp node
Matthias Clasen [Fri, 5 Jan 2007 05:41:25 +0000 (05:41 +0000)]
move set_cursor after realization of the popup window, so clamp node

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

        * gtk/gtkcombobox.c (gtk_combo_box_popup): move set_cursor
        after realization of the popup window, so clamp node doesn't fail.
        (#346616, Tommi Komulainen, patch by Kristian Rietveld).

svn path=/trunk/; revision=17073

17 years agoTranslation updated by Leonardo Ferreira Fontenelle
Gustavo Noronha Silva [Thu, 4 Jan 2007 21:28:56 +0000 (21:28 +0000)]
Translation updated by Leonardo Ferreira Fontenelle
bug #357134

svn path=/trunk/; revision=17071

17 years agoFix uninitialized width variable.
Behdad Esfahbod [Thu, 4 Jan 2007 16:24:29 +0000 (16:24 +0000)]
Fix uninitialized width variable.

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

        * gtk/gtklabel.c (get_layout_location): Fix uninitialized width
        variable.

svn path=/trunk/; revision=17069

17 years agoAnother forgotten file
Matthias Clasen [Thu, 4 Jan 2007 15:07:28 +0000 (15:07 +0000)]
Another forgotten file

svn path=/trunk/; revision=17067

17 years agoForgotten file
Matthias Clasen [Thu, 4 Jan 2007 15:06:17 +0000 (15:06 +0000)]
Forgotten file

svn path=/trunk/; revision=17066

17 years agoCross-compilation fixes. (#392646, Yevgen Muntyan)
Matthias Clasen [Thu, 4 Jan 2007 15:05:07 +0000 (15:05 +0000)]
Cross-compilation fixes. (#392646, Yevgen Muntyan)

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

        * gtk/Makefile.am:
        * gdk-pixbuf/Makefile.am:
        * configure.in:
        * gdk/win32/rc/gdk.rc.in: Cross-compilation fixes.
        (#392646, Yevgen Muntyan)

svn path=/trunk/; revision=17065

17 years agoFix some compiler warnings.
Matthias Clasen [Thu, 4 Jan 2007 14:47:29 +0000 (14:47 +0000)]
Fix some compiler warnings.

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

        * demos/gtk-demo/textscroll.c:
        * gtk/gtkhandlebox.c:
        * gtk/gtkcolorsel.c: Fix some compiler warnings.

svn path=/trunk/; revision=17063

17 years agoFix compiler warnings
Matthias Clasen [Thu, 4 Jan 2007 14:24:37 +0000 (14:24 +0000)]
Fix compiler warnings

svn path=/trunk/; revision=17062

17 years agoFix a compiler warning
Matthias Clasen [Thu, 4 Jan 2007 14:18:14 +0000 (14:18 +0000)]
Fix a compiler warning

svn path=/trunk/; revision=17061

17 years agoRework the beep-on-uninserted-text by calling the input method regardless
Matthias Clasen [Thu, 4 Jan 2007 06:09:13 +0000 (06:09 +0000)]
Rework the beep-on-uninserted-text by calling the input method regardless

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

        * gtk/gtktextview.c: Rework the beep-on-uninserted-text
        by calling the input method regardless of editability,
        and beeping from the commit/preedit-changed handlers.
        (#390514, Yevgen Muntyan)

svn path=/trunk/; revision=17054

17 years agoFix #332604, reported by Joe Wreschnig, patch by Jan Arne Petersen and
Matthias Clasen [Thu, 4 Jan 2007 05:58:32 +0000 (05:58 +0000)]
Fix #332604, reported by Joe Wreschnig, patch by Jan Arne Petersen and

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

        Fix #332604, reported by Joe Wreschnig, patch
        by Jan Arne Petersen and Behdad Esfahbod.

        * gtk/gtklabel.c (gtk_label_size_allocate): Only
        set the width of the layout when necessary.
        (get_layout_location): Use pango_layout_get_pixel_extents()
        instead of pango_layout_get_width().

svn path=/trunk/; revision=17052