]> Pileus Git - ~andy/gtk/log
~andy/gtk
16 years agoUse GdkModifierType instedd of guint, to avoid a gcc warning.
Johan Dahlin [Thu, 19 Jun 2008 12:15:07 +0000 (12:15 +0000)]
Use GdkModifierType instedd of guint, to avoid a gcc warning.

2008-06-19  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkactiongroup.c: Use GdkModifierType instedd of guint,
    to avoid a gcc warning.

svn path=/trunk/; revision=20459

16 years agobgo538784 - Don't change the filename entry in CREATE_FOLDER mode
Olle Bergkvist [Wed, 18 Jun 2008 22:35:32 +0000 (22:35 +0000)]
bgo538784 - Don't change the filename entry in CREATE_FOLDER mode
2008-06-18  Olle Bergkvist <olle.bergkvist@yahoo.se>

http://bugzilla.gnome.org/show_bug.cgi?id=538784 - Don't change
the filename in the name entry in CREATE_FOLDER mode when changing
folders, so that you can enter a new subfolder name, double-click on a
folder to change to it, and close the dialog.

* gtk/gtkfilechooserdefault.c (update_chooser_entry): Don't change
the filename in the entry in CREATE_FOLDER mode, either.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=20457

16 years agobgo419737 - Don't clear filename entry in SAVE/CREATE_FOLDER modes
Olle Bergkvist [Wed, 18 Jun 2008 22:23:39 +0000 (22:23 +0000)]
bgo419737 - Don't clear filename entry in SAVE/CREATE_FOLDER modes
2008-06-18  Olle Bergkvist <olle.bergkvist@yahoo.se>

http://bugzilla.gnome.org/show_bug.cgi?id=419737#c59 - The file
chooser clears the filename entry in SAVE/CREATE_FOLDER modes when
it shouldn't.

* gtk/gtkfilechooserdefault.c (shortcuts_activate_iter): Don't
clear the entry for CREATE_FOLDER either; this needs the same
behavior as SAVE mode.
(update_chooser_entry): Only clear the entry in OPEN/SELECT_FOLDER
modes.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
svn path=/trunk/; revision=20455

16 years agoUse standard icon names.
Matthias Clasen [Wed, 18 Jun 2008 16:22:42 +0000 (16:22 +0000)]
Use standard icon names.

2008-06-18  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkfilesystem.c (_gtk_file_system_volume_render_icon):
        * gtk/gtkfilechooserbutton.c (change_icon_theme):
        (model_add_bookmarks):
        (model_update_current_folder):
        * gtk/gtkfilechooserdefault.c (shortcuts_insert_file):
        (shortcuts_reload_icons): Use standard icon names.

svn path=/trunk/; revision=20454

16 years agoAdd some more standard icon names
Matthias Clasen [Wed, 18 Jun 2008 16:14:59 +0000 (16:14 +0000)]
Add some more standard icon names

svn path=/trunk/; revision=20453

16 years agoset the maximum of the "year" property to G_MAXINT >> 8 instead of
Michael Natterer [Wed, 18 Jun 2008 15:42:27 +0000 (15:42 +0000)]
set the maximum of the "year" property to G_MAXINT >> 8 instead of

2008-06-18  Michael Natterer  <mitch@imendio.com>

* gtk/gtkcalendar.c: set the maximum of the "year" property to
G_MAXINT >> 8 instead of G_MAXINT to fix overflows in internal
calculations which in turn caused writing beyond the boundaries of
the calendar->day_month[] and day[] arrays which in turn caused a
SEGV. This limits the lifetime of GTK+ to the year 8,388,608 ;)

svn path=/trunk/; revision=20452

16 years agoAdd image/x-win-bitmap mimetype
Matthias Clasen [Wed, 18 Jun 2008 15:15:54 +0000 (15:15 +0000)]
Add image/x-win-bitmap mimetype

svn path=/trunk/; revision=20451

16 years agotests/Makefile.am tests/autotestfilechooser.c tests/buildertest.c
Michael Natterer [Wed, 18 Jun 2008 13:29:02 +0000 (13:29 +0000)]
tests/Makefile.am tests/autotestfilechooser.c tests/buildertest.c

2008-06-18  Michael Natterer  <mitch@imendio.com>

* tests/Makefile.am
* tests/autotestfilechooser.c
* tests/buildertest.c
* tests/defaultvaluetest.c
* tests/floatingtest.c
* tests/objecttests.c
* tests/pixbuf-init.c
* tests/textbuffertest.c: remove unit tests here...

* gtk/tests/Makefile.am
* gtk/tests/builder.c
* gtk/tests/defaultvalue.c
* gtk/tests/filechooser.c
* gtk/tests/floating.c
* gtk/tests/object.c
* gtk/tests/pixbuf-init.c
* gtk/tests/textbuffer.c: ...and add them here.

svn path=/trunk/; revision=20450

16 years agodeprecate GdkDestroyNotify.
Michael Natterer [Wed, 18 Jun 2008 09:39:24 +0000 (09:39 +0000)]
deprecate GdkDestroyNotify.

2008-06-18  Michael Natterer  <mitch@imendio.com>

* gdk/gdk.h: deprecate GdkDestroyNotify.

* gdk/gdkevents.c
* gdk/gdktypes.h
* gdk/x11/gdkevents-x11.c
* gtk/gtkmain.c: s/GdkDestroyNotify/GDestroyNotify/g.

svn path=/trunk/; revision=20449

16 years agodeprecate GtkDestroyNotify.
Michael Natterer [Wed, 18 Jun 2008 09:12:32 +0000 (09:12 +0000)]
deprecate GtkDestroyNotify.

2008-06-18  Michael Natterer  <mitch@imendio.com>

* gtk/gtktypeutils.h: deprecate GtkDestroyNotify.

* gtk/gtkactiongroup.[ch]
* gtk/gtkcombobox.[ch]
* gtk/gtkcontainer.[ch]
* gtk/gtkliststore.[ch]
* gtk/gtkmain.[ch]
* gtk/gtkmenu.c
* gtk/gtkstock.[ch]
* gtk/gtktreedatalist.[ch]
* gtk/gtktreemodelfilter.[ch]
* gtk/gtktreemodelsort.[ch]
* gtk/gtktreeprivate.h
* gtk/gtktreeselection.[ch]
* gtk/gtktreesortable.[ch]
* gtk/gtktreestore.[ch]
* gtk/gtktreeview.[ch]
* gtk/gtktreeviewcolumn.[ch]: s/GtkDestroyNotify/GDestroyNotify/g.

svn path=/trunk/; revision=20448

16 years agosome more undeprecation.
Michael Natterer [Wed, 18 Jun 2008 08:51:55 +0000 (08:51 +0000)]
some more undeprecation.

2008-06-18  Michael Natterer  <mitch@imendio.com>

* tests/testgtk.c: some more undeprecation.

svn path=/trunk/; revision=20447

16 years agodeprecate GtkType, GtkSignalFunc and GTK_SIGNAL_FUNC().
Michael Natterer [Wed, 18 Jun 2008 08:26:53 +0000 (08:26 +0000)]
deprecate GtkType, GtkSignalFunc and GTK_SIGNAL_FUNC().

2008-06-18  Michael Natterer  <mitch@imendio.com>

* gtk/gtktypeutils.h: deprecate GtkType, GtkSignalFunc and
GTK_SIGNAL_FUNC().

(struct GtkArg): s/GtkType/GType/ and s/GtkSignalFunc/GCallback/

svn path=/trunk/; revision=20446

16 years agogailimage.c (gail_image_get_image_size)
Michael Natterer [Wed, 18 Jun 2008 07:04:11 +0000 (07:04 +0000)]
gailimage.c (gail_image_get_image_size)

2008-06-18  Michael Natterer  <mitch@imendio.com>

* gailimage.c (gail_image_get_image_size)
* gailpixmap.c (gail_pixmap_get_image_size):
s/gdk_window_get_size/gdk_drawable_get_size/

svn path=/trunk/; revision=20445

16 years agodeprecate gtk_type_class().
Michael Natterer [Wed, 18 Jun 2008 07:00:46 +0000 (07:00 +0000)]
deprecate gtk_type_class().

2008-06-18  Michael Natterer  <mitch@imendio.com>

* gtk/gtktypeutils.[ch]: deprecate gtk_type_class().

* gtk/gtk.symbols: changed accordingly.

* gtk/gtksettings.c (gtk_settings_install_property)
(gtk_settings_install_property_parser): get rid of using
gtk_type_class() by keeping a static reference to GtkSettingsClass
around in both functions and passing that pointer on to
settings_install_property_parser().

* tests/testgtk.c: use g_type_class_ref()/unref() instead of
gtk_type_class().

* gtk/gtkobject.c: #undef GTK_DISABLE_DEPRECATED around including
gtktypeutils.h.

svn path=/trunk/; revision=20444

16 years agoAdd deprecated version and change the deprecation markup used by ref/unref
Johan Dahlin [Wed, 18 Jun 2008 01:42:13 +0000 (01:42 +0000)]
Add deprecated version and change the deprecation markup used by ref/unref

2008-06-17  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkstyle.c: Add deprecated version
    and change the deprecation markup used by ref/unref

svn path=/trunk/; revision=20443

16 years agoAdd deprecated versions and fixup markup.
Johan Dahlin [Wed, 18 Jun 2008 01:31:22 +0000 (01:31 +0000)]
Add deprecated versions and fixup markup.

2008-06-17  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkwidget.c:
    Add deprecated versions and fixup markup.

svn path=/trunk/; revision=20442

16 years agoDon't markup deprecated in italics.
Johan Dahlin [Wed, 18 Jun 2008 01:19:53 +0000 (01:19 +0000)]
Don't markup deprecated in italics.

2008-06-17  Johan Dahlin  <jdahlin@async.com.br>

    * gtk/gtkaboutdialog.c:
    * gtk/gtkbutton.c (gtk_button_class_init):
    Don't markup deprecated in italics.

svn path=/trunk/; revision=20441

16 years agoRemove GtkFileSystemError, use GtkFileChooserError instead. (#538378,
Carlos Garnacho [Tue, 17 Jun 2008 23:33:48 +0000 (23:33 +0000)]
Remove GtkFileSystemError, use GtkFileChooserError instead. (#538378,

2008-06-18  Carlos Garnacho  <carlos@imendio.com>

        * gtk/gtkfilesystem.[ch]: Remove GtkFileSystemError, use
        GtkFileChooserError instead. (#538378, patch by Matthias Clasen)

svn path=/trunk/; revision=20440

16 years agoundeprecate.
Michael Natterer [Tue, 17 Jun 2008 21:38:16 +0000 (21:38 +0000)]
undeprecate.

2008-06-17  Michael Natterer  <mitch@imendio.com>

* examples/gtkdial/gtkdial.[ch]: undeprecate.

svn path=/trunk/; revision=20439

16 years agoremove bogus extern declaration of non-existing function
Michael Natterer [Tue, 17 Jun 2008 21:34:15 +0000 (21:34 +0000)]
remove bogus extern declaration of non-existing function

2008-06-17  Michael Natterer  <mitch@imendio.com>

* gtk/gtkobject.c: remove bogus extern declaration of non-existing
function gtk_object_init_type().

svn path=/trunk/; revision=20438

16 years agogail.c s/gtk_type_class/g_type_class_ref/
Michael Natterer [Tue, 17 Jun 2008 21:00:28 +0000 (21:00 +0000)]
gail.c s/gtk_type_class/g_type_class_ref/

2008-06-17  Michael Natterer  <mitch@imendio.com>

* gail.c
* gailtoplevel.c: s/gtk_type_class/g_type_class_ref/

* Makefile.am: add GDK_DISABLE_DEPRECATED to CPPFLAGS.

svn path=/trunk/; revision=20437

16 years agos/GtkType/GType/
Michael Natterer [Tue, 17 Jun 2008 20:43:07 +0000 (20:43 +0000)]
s/GtkType/GType/

2008-06-17  Michael Natterer  <mitch@imendio.com>

* gtk/gtkbindings.c (gtk_binding_entry_add_signal):
* gtk/gtktoolbutton.c (gtk_tool_button_get_type):
* examples/gtkdial/gtkdial.h (gtk_dial_get_type):
s/GtkType/GType/

svn path=/trunk/; revision=20436

16 years agoNeed to do the GTK_DISABLE_DEPRECATED #undef/#define dance here, too,
Tor Lillqvist [Tue, 17 Jun 2008 19:29:22 +0000 (19:29 +0000)]
Need to do the GTK_DISABLE_DEPRECATED #undef/#define dance here, too,

2008-06-17  Tor Lillqvist  <tml@novell.com>

* gtk/gtknotebook.c: Need to do the GTK_DISABLE_DEPRECATED
#undef/#define dance here, too, because
gtk_notebook_set_group_id() is deprecated but used here before it
is defined, and gcc complains about conflicting type from the
implicit int declaration when it sees the actual void definition.

svn path=/trunk/; revision=20435

16 years agoDon't use the deprecated GTK_* GtkType macros.
Tor Lillqvist [Tue, 17 Jun 2008 19:11:54 +0000 (19:11 +0000)]
Don't use the deprecated GTK_* GtkType macros.

2008-06-17  Tor Lillqvist  <tml@novell.com>

* modules/input/gtkimcontextime.h: Don't use the deprecated GTK_*
GtkType macros.

svn path=/trunk/; revision=20434

16 years agobuild with GTK_DISABLE_DEPRECATED.
Michael Natterer [Tue, 17 Jun 2008 16:03:46 +0000 (16:03 +0000)]
build with GTK_DISABLE_DEPRECATED.

2008-06-17  Michael Natterer  <mitch@imendio.com>

* gtk/Makefile.am: build with GTK_DISABLE_DEPRECATED.

* gtk/gtkclist.c
* gtk/gtkcombo.c
* gtk/gtkctree.c
* gtk/gtklist.c
* gtk/gtklistitem.c
* gtk/gtkoldeditable.c
* gtk/gtkpixmap.c
* gtk/gtktext.c
* gtk/gtktipsquery.c
* gtk/gtktree.c
* gtk/gtktreeitem.c: whenever we #undef GTK_DISABLE_DEPRECATED and
actually use deprecated symbols (not just types or macros),
#define it again before #include "gtkalias.h" so the symbols match
and the beast links.

svn path=/trunk/; revision=20433

16 years agomore tests for GtkRecentManager.
Paolo Borelli [Tue, 17 Jun 2008 15:46:40 +0000 (15:46 +0000)]
more tests for GtkRecentManager.

2008-06-17  Paolo Borelli  <pborelli@katamail.com>

* gtk/tests/recentmanager.c: more tests for GtkRecentManager.

svn path=/trunk/; revision=20431

16 years agomodules/input/gtkimcontextmultipress.h modules/input/gtkimcontextthai.h
Michael Natterer [Tue, 17 Jun 2008 14:58:10 +0000 (14:58 +0000)]
modules/input/gtkimcontextmultipress.h modules/input/gtkimcontextthai.h

2008-06-17  Michael Natterer  <mitch@imendio.com>

* modules/input/gtkimcontextmultipress.h
* modules/input/gtkimcontextthai.h
* modules/input/gtkimcontextxim.h: use G_TYPE instead of GTK_CHECK
type checking macros.

svn path=/trunk/; revision=20430

16 years agoreally move the GtkType typedef to an undeprecated section.
Michael Natterer [Tue, 17 Jun 2008 14:34:59 +0000 (14:34 +0000)]
really move the GtkType typedef to an undeprecated section.

2008-06-17  Michael Natterer  <mitch@imendio.com>

* gtk/gtktypeutils.h: really move the GtkType typedef to an
undeprecated section.

svn path=/trunk/; revision=20429

16 years agodeprecate GTK_CHECK_CAST, GTK_CHECK_CLASS_CAST, GTK_CHECK_GET_CLASS,
Michael Natterer [Tue, 17 Jun 2008 14:17:29 +0000 (14:17 +0000)]
deprecate GTK_CHECK_CAST, GTK_CHECK_CLASS_CAST, GTK_CHECK_GET_CLASS,

2008-06-17  Michael Natterer  <mitch@imendio.com>

* gtk/gtktypeutils.h: deprecate GTK_CHECK_CAST, GTK_CHECK_CLASS_CAST,
GTK_CHECK_GET_CLASS, GTK_CHECK_TYPE and GTK_CHECK_CLASS_TYPE.
Move the GtkType typedef to an undeprecated section.

svn path=/trunk/; revision=20428

16 years agouse G_TYPE macros for type checking instead of GTK_CHECK ones because it's
Michael Natterer [Tue, 17 Jun 2008 14:14:06 +0000 (14:14 +0000)]
use G_TYPE macros for type checking instead of GTK_CHECK ones because it's

2008-06-17  Michael Natterer  <mitch@imendio.com>

* gtk/gtkprogress.h: use G_TYPE macros for type checking instead
of GTK_CHECK ones because it's the parent class of an undeprecated
class and the GTK_CHECK stuff will soon be deprecated.

svn path=/trunk/; revision=20427

16 years agogtk/gtkfilesel.c gtk/gtkinputdialog.c gtk/gtkmenutoolbutton.c
Michael Natterer [Tue, 17 Jun 2008 14:11:26 +0000 (14:11 +0000)]
gtk/gtkfilesel.c gtk/gtkinputdialog.c gtk/gtkmenutoolbutton.c

2008-06-17  Michael Natterer  <mitch@imendio.com>

* gtk/gtkfilesel.c
* gtk/gtkinputdialog.c
* gtk/gtkmenutoolbutton.c
* gtk/gtkoptionmenu.c
* gtk/gtktoolitem.c
* gtk/gtktooltips.c: add or move around
#undef GTK_DISABLE_DEPRECATED so it's possible to build without
deprecated stuff again (with the minor glitch that it doesn't
link ;) but at least it's a tool to keep the code clean).

svn path=/trunk/; revision=20426

16 years agoFix dumb typo in the previous commit.
Emmanuele Bassi [Tue, 17 Jun 2008 13:46:48 +0000 (13:46 +0000)]
Fix dumb typo in the previous commit.

2008-06-17  Emmanuele Bassi  <ebassi@gnome.org>

* gtk/gtkrecentmanager.c:
(gtk_recent_manager_remove_item): Fix dumb typo in the previous
commit.

svn path=/trunk/; revision=20425

16 years agoIncrease the consistency of the errors returned by GtkRecentManager.
Emmanuele Bassi [Tue, 17 Jun 2008 13:42:53 +0000 (13:42 +0000)]
Increase the consistency of the errors returned by GtkRecentManager.

2008-06-17  Emmanuele Bassi  <ebassi@gnome.org>

* gtk/gtkrecentmanager.c:
(gtk_recent_manager_remove_item),
(gtk_recent_manager_move_item): Increase the consistency of the
errors returned by GtkRecentManager. (Paolo Borelli)

svn path=/trunk/; revision=20424

16 years agoadd some unit tests for GtkRecentManager.
Paolo Borelli [Tue, 17 Jun 2008 13:37:59 +0000 (13:37 +0000)]
add some unit tests for GtkRecentManager.

2008-06-17  Paolo Borelli  <pborelli@katamail.com>

* gtk/tests/recentmanager.c: add some unit tests for GtkRecentManager.

svn path=/trunk/; revision=20423

16 years agoConsistently use the same error when removing a URI from an empty
Emmanuele Bassi [Tue, 17 Jun 2008 13:15:45 +0000 (13:15 +0000)]
Consistently use the same error when removing a URI from an empty

2008-06-17  Emmanuele Bassi  <ebassi@gnome.org>

* gtk/gtkrecentmanager.c:
(gtk_recent_manager_remove_item): Consistently use the same
error when removing a URI from an empty GtkRecentManager.

svn path=/trunk/; revision=20422

16 years agoremove static integer variables which hold the number of members in
Michael Natterer [Tue, 17 Jun 2008 12:54:16 +0000 (12:54 +0000)]
remove static integer variables which hold the number of members in

2008-06-17  Michael Natterer  <mitch@imendio.com>

* gtk/gtkfilechooserdefault.c: remove static integer variables
which hold the number of members in GtkTargetEntry arrays and use
G_N_ELEMENTS() directly instead.

svn path=/trunk/; revision=20421

16 years agomove some deprecated symbols into #ifndef GTK_DISABLE_DEPRECATED.
Michael Natterer [Tue, 17 Jun 2008 12:47:57 +0000 (12:47 +0000)]
move some deprecated symbols into #ifndef GTK_DISABLE_DEPRECATED.

2008-06-17  Michael Natterer  <mitch@imendio.com>

* gtk/gtk.symbols: move some deprecated symbols into
#ifndef GTK_DISABLE_DEPRECATED.

svn path=/trunk/; revision=20420

16 years agoRemove the GtkRecentManager screen dance, as it has been deprecated since
Emmanuele Bassi [Tue, 17 Jun 2008 12:46:12 +0000 (12:46 +0000)]
Remove the GtkRecentManager screen dance, as it has been deprecated since

2008-06-17  Emmanuele Bassi  <ebassi@gnome.org>

* gtk/gtkfilechooserdefault.c:
(gtk_file_chooser_default_init),
(gtk_file_chooser_default_constructor),
(gtk_file_chooser_default_screen_changed),
(recent_start_loading): Remove the GtkRecentManager screen
dance, as it has been deprecated since 2.12. Now we get the
GtkRecentManager singleton whewn we create the FileChooserDefault
instance. (Michael Natterer)

svn path=/trunk/; revision=20419

16 years agocast menu's toplevel to GtkWindow when passing to
Michael Natterer [Tue, 17 Jun 2008 11:27:37 +0000 (11:27 +0000)]
cast menu's toplevel to GtkWindow when passing to

2008-06-17  Michael Natterer  <mitch@imendio.com>

* gtk/gtkoptionmenu.c (gtk_option_menu_position): cast menu's
toplevel to GtkWindow when passing to gtk_window_set_type_hint().

svn path=/trunk/; revision=20417

16 years ago#undef GTK_DISABLE_DEPRECATED, clean up includes a bit.
Michael Natterer [Tue, 17 Jun 2008 09:58:09 +0000 (09:58 +0000)]
#undef GTK_DISABLE_DEPRECATED, clean up includes a bit.

2008-06-17  Michael Natterer  <mitch@imendio.com>

* gtk/gtktestutils.c: #undef GTK_DISABLE_DEPRECATED, clean up
includes a bit.

* gtk/gtkuimanager.c: #include "gtkwindow.h", it was only pulled
in via deprecated headers.

svn path=/trunk/; revision=20416

16 years agoJustify my last entry.
Tor Lillqvist [Tue, 17 Jun 2008 08:51:27 +0000 (08:51 +0000)]
Justify my last entry.

svn path=/trunk/; revision=20415

16 years agoProtect against XKB being stupid. Reported by Pedro Villavicencio.
Matthias Clasen [Tue, 17 Jun 2008 02:11:47 +0000 (02:11 +0000)]
Protect against XKB being stupid. Reported by Pedro Villavicencio.

        * gdk/x11/gdkkeys-x11.c (_gdk_keymap_key_is_modifier): Protect
        against XKB being stupid. Reported by Pedro Villavicencio.

svn path=/trunk/; revision=20413

16 years agouse g_object_ref() and unref() instead of the deprecated gtk_widget_ref()
Michael Natterer [Mon, 16 Jun 2008 22:47:50 +0000 (22:47 +0000)]
use g_object_ref() and unref() instead of the deprecated gtk_widget_ref()

2008-06-17  Michael Natterer  <mitch@imendio.com>

* gtk/gtkplug.c (_gtk_plug_send_delete_event): use g_object_ref()
and unref() instead of the deprecated gtk_widget_ref() and unref().

svn path=/trunk/; revision=20411

16 years agoremoved function drag_begin_cb(), which was in svn since 2.8 but was never
Michael Natterer [Mon, 16 Jun 2008 20:10:17 +0000 (20:10 +0000)]
removed function drag_begin_cb(), which was in svn since 2.8 but was never

2008-06-16  Michael Natterer  <mitch@imendio.com>

* gtk/gtkentry.c: removed function drag_begin_cb(), which was in
svn since 2.8 but was never used.

svn path=/trunk/; revision=20409

16 years agouse gtk_binding_entry_clear() instead of gtk_binding_entry_add() (the
Michael Natterer [Mon, 16 Jun 2008 20:02:33 +0000 (20:02 +0000)]
use gtk_binding_entry_clear() instead of gtk_binding_entry_add() (the

2008-06-16  Michael Natterer  <mitch@imendio.com>

* gtk/gtkbindings.c (_gtk_binding_entry_add_signall): use
gtk_binding_entry_clear() instead of gtk_binding_entry_add()
(the former is deprecated and #defined to gtk_binding_entry_clear)

svn path=/trunk/; revision=20408

16 years agodon't include the deprecated (and unused) "gtkmarshal.h".
Michael Natterer [Mon, 16 Jun 2008 19:19:31 +0000 (19:19 +0000)]
don't include the deprecated (and unused) "gtkmarshal.h".

2008-06-16  Michael Natterer  <mitch@imendio.com>

* gtk/gtkprintoperation-unix.c: don't include the deprecated (and
unused) "gtkmarshal.h".

svn path=/trunk/; revision=20407

16 years agoBug 538182 – pango_cairo_context_update_layout is not noop after
Behdad Esfahbod [Mon, 16 Jun 2008 18:53:17 +0000 (18:53 +0000)]
Bug 538182 – pango_cairo_context_update_layout is not noop after

2008-06-16  Behdad Esfahbod  <behdad@gnome.org>

        Bug 538182 – pango_cairo_context_update_layout is not noop after
        gtk_widget_create_pango_layout

        * gtk/gtksettings.c (settings_update_font_options): Make sure all
        font option fields are set to non-DEFAULT values.

svn path=/trunk/; revision=20406

16 years agogtk/gtkfontsel.c gtk/gtkrc.c gtk/gtkstyle.c use g_object_unref() instead
Michael Natterer [Mon, 16 Jun 2008 16:53:39 +0000 (16:53 +0000)]
gtk/gtkfontsel.c gtk/gtkrc.c gtk/gtkstyle.c use g_object_unref() instead

2008-06-16  Michael Natterer  <mitch@imendio.com>

* gtk/gtkfontsel.c
* gtk/gtkrc.c
* gtk/gtkstyle.c
* gtk/gtkwidget.c: use g_object_unref() instead of the deprecated
gtk_rc_style_unref().

svn path=/trunk/; revision=20405

16 years agouse _gtk_marshal_BOOLEAN__VOID instead of the deprecated
Michael Natterer [Mon, 16 Jun 2008 16:44:19 +0000 (16:44 +0000)]
use _gtk_marshal_BOOLEAN__VOID instead of the deprecated

2008-06-16  Michael Natterer  <mitch@imendio.com>

* gtk/gtkcombobox.c (gtk_combo_box_class_init): use
_gtk_marshal_BOOLEAN__VOID instead of the deprecated
gtk_marshal_BOOLEAN__VOID.

svn path=/trunk/; revision=20404

16 years agogtk/gtkcellrendereraccel.h gtk/gtkiconview.h use G_TYPE macros instead of
Michael Natterer [Mon, 16 Jun 2008 16:26:49 +0000 (16:26 +0000)]
gtk/gtkcellrendereraccel.h gtk/gtkiconview.h use G_TYPE macros instead of

2008-06-16  Michael Natterer  <mitch@imendio.com>

* gtk/gtkcellrendereraccel.h
* gtk/gtkiconview.h
* gtk/gtkobject.h: use G_TYPE macros instead of the old GTK_CHECK
macros for type checking.

(gtk_object_get_type): change prototype to return GType instead of
GtkType.

svn path=/trunk/; revision=20403

16 years agoIncrease verbiage.
Tor Lillqvist [Mon, 16 Jun 2008 13:46:20 +0000 (13:46 +0000)]
Increase verbiage.

svn path=/trunk/; revision=20402

16 years agoTypo.
Tor Lillqvist [Mon, 16 Jun 2008 13:44:23 +0000 (13:44 +0000)]
Typo.

svn path=/trunk/; revision=20401

16 years agoAdd some symlinks to the builtin icon theme
Matthias Clasen [Mon, 16 Jun 2008 13:38:58 +0000 (13:38 +0000)]
Add some symlinks to the builtin icon theme

svn path=/trunk/; revision=20399

16 years agoBug 538362 - Get Win32 icons back in the file chooser
Tor Lillqvist [Mon, 16 Jun 2008 13:27:46 +0000 (13:27 +0000)]
Bug 538362 - Get Win32 icons back in the file chooser

2008-06-16  Tor Lillqvist  <tml@novell.com>

Bug 538362 - Get Win32 icons back in the file chooser

* gtk/gtkicontheme.c (choose_icon): Check if the icon name is a
reference to an icon resource in a DLL or .EXE as in the
Registry. In that case, extract the icon and convert to a
GdkPixbuf. Patch by Hans Breuer.

svn path=/trunk/; revision=20398

16 years agoAdd icons that are used by GtkVolumeButton
Matthias Clasen [Mon, 16 Jun 2008 12:31:20 +0000 (12:31 +0000)]
Add icons that are used by GtkVolumeButton

svn path=/trunk/; revision=20397

16 years agoremove GtkTooltips member from the GtkFileChooserDefault struct.
Michael Natterer [Mon, 16 Jun 2008 11:49:23 +0000 (11:49 +0000)]
remove GtkTooltips member from the GtkFileChooserDefault struct.

2008-06-16  Michael Natterer  <mitch@imendio.com>

* gtk/gtkfilechooserprivate.h: remove GtkTooltips member from the
GtkFileChooserDefault struct.

* gtk/gtkfilechooserdefault.c: don't allocate and free the
GtkTooltips.

svn path=/trunk/; revision=20396

16 years agoBug 538519 – GtkCellRendererPixbuf doesn't allow unsetting the icon
Carlos Garnacho [Mon, 16 Jun 2008 10:03:16 +0000 (10:03 +0000)]
Bug 538519 – GtkCellRendererPixbuf doesn't allow unsetting the icon

2008-06-16  Carlos Garnacho  <carlos@imendio.com>

        Bug 538519 – GtkCellRendererPixbuf doesn't allow unsetting the icon
        anymore

        * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_set_property):
        Allow again setting any of the properties to render an image back to
        NULL.

svn path=/trunk/; revision=20395

16 years agoWhen pixel-size is specified, use GTK_ICON_LOOKUP_FORCE_SIZE when loading
Matthias Clasen [Mon, 16 Jun 2008 02:05:16 +0000 (02:05 +0000)]
When pixel-size is specified, use GTK_ICON_LOOKUP_FORCE_SIZE when loading

2008-06-15  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkimage.c: When pixel-size is specified, use
        GTK_ICON_LOOKUP_FORCE_SIZE when loading themed icons.

svn path=/trunk/; revision=20394

16 years agoReturn full path here as expected, not just the basename.
Carlos Garnacho [Sun, 15 Jun 2008 23:32:11 +0000 (23:32 +0000)]
Return full path here as expected, not just the basename.

2008-06-15  Carlos Garnacho  <carlos@imendio.com>

        * gtk/gtkfilechooser.c (gtk_file_chooser_get_filename): Return full
        path here as expected, not just the basename.

        * gtk/gtkfilechooserdefault.c
        (gtk_file_chooser_default_update_current_folder): Ensure that we keep
        a reference to file, since it can be destroyed when switching back to
        browse mode.

        * gtk/gtkfilesystem.c (get_icon_for_special_directory): Removed, home
        and desktop directories are dealt by the filechooser as normal files,
        not volumes, so the icon for these is handled directly by GIO.
        (_gtk_file_system_volume_render_icon): Update caller.

svn path=/trunk/; revision=20393

16 years agoFix docs
Matthias Clasen [Sun, 15 Jun 2008 22:56:47 +0000 (22:56 +0000)]
Fix docs

svn path=/trunk/; revision=20392

16 years agoAdd a gicon property
Matthias Clasen [Sun, 15 Jun 2008 04:54:20 +0000 (04:54 +0000)]
Add a gicon property

svn path=/trunk/; revision=20391

16 years agoInitialize hwnd to NULL. This fixes OpenClipboard() failure and, according
Cody Russell [Sun, 15 Jun 2008 00:00:49 +0000 (00:00 +0000)]
Initialize hwnd to NULL. This fixes OpenClipboard() failure and, according

2008-06-14  Cody Russell  <bratsche@gnome.org>

        * gdk/win32/gdkselection-win32.c (gdk_win32_selection_add_targets):

        Initialize hwnd to NULL.  This fixes OpenClipboard() failure and,
        according to MSDN docs, associates the open clipboard with the
        current task.  (#378158, reported by Andreas Köhler)

svn path=/trunk/; revision=20388

16 years agoBump version
Matthias Clasen [Sat, 14 Jun 2008 01:24:08 +0000 (01:24 +0000)]
Bump version

svn path=/trunk/; revision=20387

16 years ago2.13.3
Matthias Clasen [Sat, 14 Jun 2008 01:21:31 +0000 (01:21 +0000)]
2.13.3

svn path=/trunk/; revision=20385

16 years agoUpdates
Matthias Clasen [Fri, 13 Jun 2008 20:09:58 +0000 (20:09 +0000)]
Updates

svn path=/trunk/; revision=20384

16 years agoHere too
Matthias Clasen [Fri, 13 Jun 2008 17:47:43 +0000 (17:47 +0000)]
Here too

svn path=/trunk/; revision=20383

16 years agoRemove no longer existing files
Matthias Clasen [Fri, 13 Jun 2008 17:45:55 +0000 (17:45 +0000)]
Remove no longer existing files

svn path=/trunk/; revision=20382

16 years agoAdd some docs
Matthias Clasen [Fri, 13 Jun 2008 17:40:17 +0000 (17:40 +0000)]
Add some docs

svn path=/trunk/; revision=20381

16 years agoFix doc typos
Matthias Clasen [Fri, 13 Jun 2008 17:20:55 +0000 (17:20 +0000)]
Fix doc typos

svn path=/trunk/; revision=20380

16 years agoAvoid PLT entries
Matthias Clasen [Fri, 13 Jun 2008 17:02:26 +0000 (17:02 +0000)]
Avoid PLT entries

svn path=/trunk/; revision=20379

16 years agoReally make GtkFileSystem private by _-prefixing all functions.
Matthias Clasen [Fri, 13 Jun 2008 16:47:41 +0000 (16:47 +0000)]
Really make GtkFileSystem private by _-prefixing all functions.

        * gtk/gtkfilechooserbutton.c:
        * gtk/gtkfilechooserdefault.c:
        * gtk/gtkfilechooserentry.c:
        * gtk/gtkfilesystem.c:
        * gtk/gtkfilesystem.h:
        * gtk/gtkfilesystemmodel.c:
        * gtk/gtkpathbar.c: Really make GtkFileSystem private
        by _-prefixing all functions.

svn path=/trunk/; revision=20378

16 years agoUpdates
Matthias Clasen [Fri, 13 Jun 2008 15:00:36 +0000 (15:00 +0000)]
Updates

svn path=/trunk/; revision=20377

16 years agoUpdates`
Matthias Clasen [Fri, 13 Jun 2008 14:54:46 +0000 (14:54 +0000)]
Updates`

svn path=/trunk/; revision=20376

16 years agogtk/gtkcellrendereraccel.h gtk/gtkfilechooser.h gtk/gtkfilechooserdialog.h
Michael Natterer [Fri, 13 Jun 2008 14:26:44 +0000 (14:26 +0000)]
gtk/gtkcellrendereraccel.h gtk/gtkfilechooser.h gtk/gtkfilechooserdialog.h

2008-06-13  Michael Natterer  <mitch@imendio.com>

* gtk/gtkcellrendereraccel.h
* gtk/gtkfilechooser.h
* gtk/gtkfilechooserdialog.h
* gtk/gtkfilechooserwidget.h
* gtk/gtkmenutoolbutton.h
* gtk/gtkpagesetup.h
* gtk/gtkpapersize.h
* gtk/gtkprintcontext.h
* gtk/gtkprintoperation.h
* gtk/gtkprintoperationpreview.h
* gtk/gtkprintsettings.h
* gtk/gtkradiotoolbutton.h
* gtk/gtkrecentchooser.h
* gtk/gtkrecentchooserdialog.h
* gtk/gtkrecentchoosermenu.h
* gtk/gtkrecentchooserwidget.h
* gtk/gtkseparatortoolitem.h
* gtk/gtkshow.h
* gtk/gtktoggletoolbutton.h
* gtk/gtktoolbar.h
* gtk/gtktoolbutton.h
* gtk/gtktooltip.h: #include <gtk/gtkfoo.h> instead of
"gtk/gtkfoo.h" or even just "gtkfoo.h" in public headers.

svn path=/trunk/; revision=20375

16 years agoremove double inclusion of <gtk/gtktexttag.h>.
Michael Natterer [Fri, 13 Jun 2008 14:04:52 +0000 (14:04 +0000)]
remove double inclusion of <gtk/gtktexttag.h>.

2008-06-13  Michael Natterer  <mitch@imendio.com>

* gtk/gtktexttagtable.h: remove double inclusion of
<gtk/gtktexttag.h>.

svn path=/trunk/; revision=20374

16 years agochange type of local "image" variable from GtkImage to GtkWidget to fix
Michael Natterer [Fri, 13 Jun 2008 13:40:29 +0000 (13:40 +0000)]
change type of local "image" variable from GtkImage to GtkWidget to fix

2008-06-13  Michael Natterer  <mitch@imendio.com>

* gtk/gtkaction.c (gtk_action_set_short_label): change type of
local "image" variable from GtkImage to GtkWidget to fix warning.

svn path=/trunk/; revision=20373

16 years agocast menu's toplevel to GtkWindow when passing to
Michael Natterer [Fri, 13 Jun 2008 13:30:38 +0000 (13:30 +0000)]
cast menu's toplevel to GtkWindow when passing to

2008-06-13  Michael Natterer  <mitch@imendio.com>

* gtk/gtkcombobox.c (gtk_combo_box_menu_position): cast menu's
toplevel to GtkWindow when passing to gtk_window_set_type_hint().

svn path=/trunk/; revision=20372

16 years agosilently skip unknown attributes instead of bailing out with an error in
Michael Natterer [Fri, 13 Jun 2008 10:44:34 +0000 (10:44 +0000)]
silently skip unknown attributes instead of bailing out with an error in

2008-06-13  Michael Natterer  <mitch@imendio.com>

* gtk/gtkuimanager.c (start_element_handler): silently skip
unknown attributes instead of bailing out with an error in order
to be compatible with possible future attribute names.

This is related to the discussion in bug #516425 but actually
needed for any kind of XML format extension.

svn path=/trunk/; revision=20371

16 years agocheck surface status after ceating a pdf. Avoids crashing when the target
Hans Breuer [Fri, 13 Jun 2008 08:36:26 +0000 (08:36 +0000)]
check surface status after ceating a pdf. Avoids crashing when the target

2008-05-23  Hans Breuer  <hans@breuer.org>

* gtk/gtkprintoperation.c : check surface status after ceating a pdf.
Avoids crashing when the target can not be written, bug #537685

* gdk/win32/gdkdisplay-win32.c : runtime linking of ProcessIdToSessionId

* gtk/gtkfilesystem.c : variadic macros are not supported with c89 and
it was not needed here anyway.

svn path=/trunk/; revision=20370

16 years agoupdated to allow simple switch between gdiplus- and former fileformat
Hans Breuer [Fri, 13 Jun 2008 08:27:02 +0000 (08:27 +0000)]
updated to allow simple switch between gdiplus- and former fileformat

2008-06-13  Hans Breuer  <hans@breuer.org>

* makefile.msc : updated to allow simple switch between gdiplus- and
former fileformat backends
* io-tiff.c : use g_snprintf

svn path=/trunk/; revision=20369

16 years agoFix frame size allocation
Matthias Clasen [Fri, 13 Jun 2008 04:56:25 +0000 (04:56 +0000)]
Fix frame size allocation

svn path=/trunk/; revision=20368

16 years agoFix a crash
Matthias Clasen [Fri, 13 Jun 2008 04:23:54 +0000 (04:23 +0000)]
Fix a crash

svn path=/trunk/; revision=20367

16 years agoOpen the default display even when gtk_parse_args() has already been
Matthias Clasen [Fri, 13 Jun 2008 03:24:37 +0000 (03:24 +0000)]
Open the default display even when gtk_parse_args() has already been

        * gtk/gtkmain.c (gtk_init_with_args): Open the default display
        even when gtk_parse_args() has already been called.
        Patch by Mathias Hasselmann

svn path=/trunk/; revision=20366

16 years agoImprove appearance of "both vertical" mode toolbuttons. Patch by Peter
Matthias Clasen [Fri, 13 Jun 2008 03:21:09 +0000 (03:21 +0000)]
Improve appearance of "both vertical" mode toolbuttons. Patch by Peter

        * gtk/gtktoolbutton.c (gtk_tool_button_construct_contents):
        Improve appearance of "both vertical" mode toolbuttons.
        Patch by Peter Johanson

svn path=/trunk/; revision=20365

16 years agoA11y descriptions for GtkVolumeButton
Matthias Clasen [Fri, 13 Jun 2008 03:17:51 +0000 (03:17 +0000)]
A11y descriptions for GtkVolumeButton

svn path=/trunk/; revision=20364

16 years agoSet the image of a button proxy to the "icon-name" property.
Matthias Clasen [Fri, 13 Jun 2008 01:26:46 +0000 (01:26 +0000)]
Set the image of a button proxy to the "icon-name" property.

        * gtk/gtkaction.c (connect_proxy): Set the image of a button
        proxy to the "icon-name" property.

        (gtk_action_set_short_label):  If the "image" property is set
        on the button proxy, also tries to set the "label" property on
        the GtkButton.

svn path=/trunk/; revision=20363

16 years agogtk/gtkmain.c don't #include <libintl.h>, it's pulled in via "gtkintl.h"
Michael Natterer [Thu, 12 Jun 2008 13:53:55 +0000 (13:53 +0000)]
gtk/gtkmain.c don't #include <libintl.h>, it's pulled in via "gtkintl.h"

2008-06-12  Michael Natterer  <mitch@imendio.com>

* gtk/gtkmain.c
* gtk/gtktrayicon-x11.c: don't #include <libintl.h>, it's pulled
in via "gtkintl.h" from <glib/gi18n-lib.h>.

svn path=/trunk/; revision=20362

16 years agoReally fix printer URI construction
Matthias Clasen [Thu, 12 Jun 2008 13:03:35 +0000 (13:03 +0000)]
Really fix printer URI construction

svn path=/trunk/; revision=20360

16 years agolimit the number of displayed items by the actual screen height instead of
Michael Natterer [Thu, 12 Jun 2008 11:17:16 +0000 (11:17 +0000)]
limit the number of displayed items by the actual screen height instead of

2008-06-12  Michael Natterer  <mitch@imendio.com>

* gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
limit the number of displayed items by the actual screen height
instead of some arbitrary value (Bug #408154, Xan Lopez and
Christian Dywan).

svn path=/trunk/; revision=20359

16 years agoBug 503071 – Application direction changes to right to left even if
Behdad Esfahbod [Wed, 11 Jun 2008 23:40:35 +0000 (23:40 +0000)]
Bug 503071 – Application direction changes to right to left even if

2008-06-11  Behdad Esfahbod  <behdad@gnome.org>

        Bug 503071 – Application direction changes to right to left even if
        theres no translation

        * configure.in: Bump glib requirement.

        * gtk/gtkaccellabel.c
        (_gtk_accel_label_class_get_accelerator_label):
        * gtk/gtkactiongroup.c (dgettext_swapped):
        * gtk/gtkbuilder.c (gtk_builder_class_init):
        * gtk/gtkbuilderparser.c (_dpgettext),
        (_gtk_builder_parser_translate):
        * gtk/gtkfilechooserdefault.c (list_size_data_func):
        * gtk/gtkimmulticontext.c (gtk_im_multicontext_append_menuitems):
        * gtk/gtkintl.h:
        * gtk/gtkmain.c (setlocale_initialization),
        (do_pre_parse_initialization), (gettext_initialization):
        * gtk/gtkstock.c (gtk_stock_lookup), (sgettext_swapped):
        Use g_dgettext() and g_dngettext().

svn path=/trunk/; revision=20358

16 years agoUpdated Arabic Translation by Khaled Hosny.
Djihed Afifi [Wed, 11 Jun 2008 21:43:32 +0000 (21:43 +0000)]
Updated Arabic Translation by Khaled Hosny.

svn path=/trunk/; revision=20357

16 years agoUpdated Arabic Translation by Khaled Hosny.
Djihed Afifi [Wed, 11 Jun 2008 21:39:48 +0000 (21:39 +0000)]
Updated Arabic Translation by Khaled Hosny.

svn path=/trunk/; revision=20356

16 years agoMore detail
Matthias Clasen [Wed, 11 Jun 2008 18:51:35 +0000 (18:51 +0000)]
More detail

svn path=/trunk/; revision=20355

16 years agoUpdates
Matthias Clasen [Wed, 11 Jun 2008 18:45:07 +0000 (18:45 +0000)]
Updates

svn path=/trunk/; revision=20354

16 years agoAs we don't support Win9x anyway, we can use ProcessIdToSessionId()
Tor Lillqvist [Wed, 11 Jun 2008 16:05:28 +0000 (16:05 +0000)]
As we don't support Win9x anyway, we can use ProcessIdToSessionId()

2008-06-11  Tor Lillqvist  <tml@novell.com>

* gdk/win32/gdkdisplay-win32.c (gdk_display_get_name): As we don't
support Win9x anyway, we can use ProcessIdToSessionId()
unconditionally.

svn path=/trunk/; revision=20353

16 years agofix local prototype of _gtk_file_chooser_label_for_file() (takes a GFile,
Michael Natterer [Wed, 11 Jun 2008 15:14:26 +0000 (15:14 +0000)]
fix local prototype of _gtk_file_chooser_label_for_file() (takes a GFile,

2008-06-11  Michael Natterer  <mitch@imendio.com>

* gtk/gtkfilechooserbutton.c: fix local prototype of
_gtk_file_chooser_label_for_file() (takes a GFile, not const gchar*).

svn path=/trunk/; revision=20352

16 years ago Bug 536765 – GtkComboBox should set COMBO type hint for its menu
Matthias Clasen [Wed, 11 Jun 2008 03:36:32 +0000 (03:36 +0000)]
    Bug 536765 – GtkComboBox should set COMBO type hint for its menu

        * gtk/gtkoptionmenu.c:
        * gtk/gtkcombobox.c: Set the window type hint on popups.
        Patch by Danny Baumann

svn path=/trunk/; revision=20351

16 years agoAdd standard icon names, and also fall back to builtin gtk stock icons.
Matthias Clasen [Wed, 11 Jun 2008 03:17:55 +0000 (03:17 +0000)]
Add standard icon names, and also fall back to builtin gtk stock icons.

        * gtk/gtkfilesystem.c (get_icon_for_special_directory):
        (gtk_file_system_volume_render_icon): Add standard icon names,
        and also fall back to builtin gtk stock icons.

svn path=/trunk/; revision=20350

16 years agoMake gtk_tree_view_enable_model_drag_[source|dest] compatible with
Christian Persch [Tue, 10 Jun 2008 12:33:22 +0000 (12:33 +0000)]
Make gtk_tree_view_enable_model_drag_[source|dest] compatible with

* gtk/gtktreeview.c: (destroy_info), (set_destination_row),
(gtk_tree_view_maybe_begin_dragging_row),
(gtk_tree_view_set_reorderable),
(gtk_tree_view_enable_model_drag_source),
(gtk_tree_view_enable_model_drag_dest),
(gtk_tree_view_unset_rows_drag_source),
(gtk_tree_view_unset_rows_drag_dest): Make
gtk_tree_view_enable_model_drag_[source|dest] compatible with
gtk_drag_[source|dest]_add_*_targets. Bug #506853.

svn path=/trunk/; revision=20349

16 years agoUse GSlice. Patch from bug #506853.
Christian Persch [Tue, 10 Jun 2008 12:28:57 +0000 (12:28 +0000)]
Use GSlice. Patch from bug #506853.

* gtk/gtktreeview.c: (gtk_tree_view_button_release_drag_column),
(dest_row_free), (set_dest_row), (ensure_info),
(gtk_tree_view_remove), (gtk_tree_view_put),
(gtk_tree_view_set_column_drag_info): Use GSlice. Patch from
bug #506853.

svn path=/trunk/; revision=20348