]>
Pileus Git - ~andy/gtk/log
Tim Janik [Fri, 20 Jun 2008 11:00:52 +0000 (11:00 +0000)]
Seal GtkCellRendererCombo.
* gtk/gtkcellrenderercombo.h: seal all member fields. The members fields
that were not marked as private are already accessible via GObject properties.
svn path=/trunk/; revision=20522
Tim Janik [Fri, 20 Jun 2008 11:00:46 +0000 (11:00 +0000)]
Seal GtkCellRendererAccel.
* gtk/gtkcellrendereraccel.h: seal all member fields that were already
marked as private.
svn path=/trunk/; revision=20521
Tim Janik [Fri, 20 Jun 2008 11:00:41 +0000 (11:00 +0000)]
Seal GtkTreeView
* gtk/gtktreeview.h: seal private pointer.
svn path=/trunk/; revision=20520
Tim Janik [Fri, 20 Jun 2008 11:00:35 +0000 (11:00 +0000)]
Seal GtkTreeModelFilter
* gtk/gtktreemodelfilter.h: include gdkconfig.h for GSEAL, seal private
pointer.
svn path=/trunk/; revision=20519
Tim Janik [Fri, 20 Jun 2008 11:00:30 +0000 (11:00 +0000)]
Seal GtkTreeModelSort
* gtk/gtktreemodelsort.h: include gdkconfig.h to get GSEAL defined, seal
all public member fields.
svn path=/trunk/; revision=20518
Tim Janik [Fri, 20 Jun 2008 11:00:25 +0000 (11:00 +0000)]
Seal GtkTreeStore
* gtk/gtktreestore.h: include gdkconfig.h to get GSEAL defined, seal
public member fields.
svn path=/trunk/; revision=20517
Tim Janik [Fri, 20 Jun 2008 11:00:20 +0000 (11:00 +0000)]
Seal GtkListStore
* gtk/gtkliststore.h: include gdkconfig.h to get GSEAL defined; seal
public member fields.
svn path=/trunk/; revision=20516
Tim Janik [Fri, 20 Jun 2008 11:00:12 +0000 (11:00 +0000)]
add accessor.
* gtk/gtkcontainer.c (gtk_container_get_focus_child): add accessor.
svn path=/trunk/; revision=20515
Tim Janik [Fri, 20 Jun 2008 11:00:06 +0000 (11:00 +0000)]
seal members.
* gtk/gtkcontainer.h: seal members.
svn path=/trunk/; revision=20514
Tim Janik [Fri, 20 Jun 2008 10:59:58 +0000 (10:59 +0000)]
seal members.
* gtk/gtkmisc.h: seal members.
svn path=/trunk/; revision=20513
Tim Janik [Fri, 20 Jun 2008 10:59:53 +0000 (10:59 +0000)]
*gtk/gtkfixed.h: seal members.
svn path=/trunk/; revision=20512
Tim Janik [Fri, 20 Jun 2008 10:59:48 +0000 (10:59 +0000)]
seal all members.
* gtk/gtkcellrendererpixbuf.h: seal all members.
svn path=/trunk/; revision=20511
Tim Janik [Fri, 20 Jun 2008 10:59:43 +0000 (10:59 +0000)]
seal private member.
* gtk/gtkcellrendererprogress.h: seal private member.
svn path=/trunk/; revision=20510
Tim Janik [Fri, 20 Jun 2008 10:59:38 +0000 (10:59 +0000)]
seal all members.
* gtk/gtkcellrenderertoggle.h: seal all members.
svn path=/trunk/; revision=20509
Tim Janik [Fri, 20 Jun 2008 10:59:32 +0000 (10:59 +0000)]
Seal the private member.
* gtk/gtkfilechooserwidget.h: Seal the private member.
svn path=/trunk/; revision=20508
Tim Janik [Fri, 20 Jun 2008 10:59:27 +0000 (10:59 +0000)]
gtk/gtkfilechooserdialog.h: seal the private member.
svn path=/trunk/; revision=20507
Tim Janik [Fri, 20 Jun 2008 10:59:22 +0000 (10:59 +0000)]
Seal private member.
* gtk/gtkentrycompletion.h: Seal private member.
svn path=/trunk/; revision=20506
Tim Janik [Fri, 20 Jun 2008 10:59:17 +0000 (10:59 +0000)]
Seal the private member.
* gtk/gtkcellview.h: Seal the private member.
svn path=/trunk/; revision=20505
Tim Janik [Fri, 20 Jun 2008 10:59:11 +0000 (10:59 +0000)]
seal private member.
* gtk/gtkcolorbutton.h: seal private member.
svn path=/trunk/; revision=20504
Tim Janik [Fri, 20 Jun 2008 10:59:06 +0000 (10:59 +0000)]
seal public struct members.
* gtk/gtkcheckmenuitem.h: seal public struct members.
svn path=/trunk/; revision=20503
Tim Janik [Fri, 20 Jun 2008 10:59:01 +0000 (10:59 +0000)]
seal public struct members.
* gtk/gtkcalendar.h: seal public struct members.
svn path=/trunk/; revision=20502
Tim Janik [Fri, 20 Jun 2008 10:58:55 +0000 (10:58 +0000)]
Also seal variables marked as private.
* gtk/gtkdialog.h: Also seal variables marked as private.
svn path=/trunk/; revision=20501
Tim Janik [Fri, 20 Jun 2008 10:58:50 +0000 (10:58 +0000)]
seal private member.
* gtk/gtkimagemenuitem.h: seal private member.
svn path=/trunk/; revision=20500
Tim Janik [Fri, 20 Jun 2008 10:58:45 +0000 (10:58 +0000)]
seal private member.
* gtk/gtkiconfactory.h: seal private member.
svn path=/trunk/; revision=20499
Tim Janik [Fri, 20 Jun 2008 10:58:40 +0000 (10:58 +0000)]
Seal GtkActionGroup
* gtk/gtkactiongroup.[ch]: Use GSEAL macro on ->private_data public
member and clean up .c file to reflect this.
svn path=/trunk/; revision=20498
Tim Janik [Fri, 20 Jun 2008 10:58:34 +0000 (10:58 +0000)]
Seal GtkAccelLabel
gtk/gtkaccellabel.h: deprecate direct field access to GtkAccelLabel fields
svn path=/trunk/; revision=20497
Tim Janik [Fri, 20 Jun 2008 10:58:29 +0000 (10:58 +0000)]
seal instance struct member.
* gtk/gtkdrawingarea.h: seal instance struct member.
svn path=/trunk/; revision=20496
Tim Janik [Fri, 20 Jun 2008 10:58:23 +0000 (10:58 +0000)]
Seal GtkScaleButton public fields
* gtk/gtkscalebutton.h: Deprecate direct access through GSEAL().
svn path=/trunk/; revision=20495
Tim Janik [Fri, 20 Jun 2008 10:58:18 +0000 (10:58 +0000)]
Seal GtkScale public fields
* gtk/gtkscale.h: Deprecate direct access through GSEAL().
svn path=/trunk/; revision=20494
Tim Janik [Fri, 20 Jun 2008 10:58:13 +0000 (10:58 +0000)]
Seal GtkProgressBar public fields
svn path=/trunk/; revision=20493
Tim Janik [Fri, 20 Jun 2008 10:58:07 +0000 (10:58 +0000)]
Seal GtkFrame public vars
svn path=/trunk/; revision=20492
Tim Janik [Fri, 20 Jun 2008 10:58:02 +0000 (10:58 +0000)]
Deprecate direct access to public variables in GtkButton.
* gtk/gtkbutton.h: Deprecate direct access through GSEAL().
svn path=/trunk/; revision=20491
Tim Janik [Fri, 20 Jun 2008 10:57:57 +0000 (10:57 +0000)]
Deprecate direct access to public variables in GtkButtonBox.
* gtk/gtkbbox.h: Deprecate direct access through GSEAL().
svn path=/trunk/; revision=20490
Tim Janik [Fri, 20 Jun 2008 10:57:52 +0000 (10:57 +0000)]
Deprecate direct access to public variables in GtkBox.
* gtk/gtkbox.h: Deprecate direct access through GSEAL().
svn path=/trunk/; revision=20489
Tim Janik [Fri, 20 Jun 2008 10:57:46 +0000 (10:57 +0000)]
Seal GtkMessageDialog public vars
svn path=/trunk/; revision=20488
Tim Janik [Fri, 20 Jun 2008 10:57:41 +0000 (10:57 +0000)]
Seal GtkDialog public vars
svn path=/trunk/; revision=20487
Tim Janik [Fri, 20 Jun 2008 10:57:35 +0000 (10:57 +0000)]
Add accessors for GtkDialog public vars, also implement GtkContainer::add/remove
svn path=/trunk/; revision=20486
Tim Janik [Fri, 20 Jun 2008 10:57:29 +0000 (10:57 +0000)]
Seal GtkAssistant public fields
svn path=/trunk/; revision=20485
Tim Janik [Fri, 20 Jun 2008 10:57:23 +0000 (10:57 +0000)]
Seal GtkNotebook public fields
svn path=/trunk/; revision=20484
Tim Janik [Fri, 20 Jun 2008 10:57:18 +0000 (10:57 +0000)]
Deprecate direct access to child in GtkBin.
* gtk/gtkbin.h: Deprecate direct access to child by GSEAL.
svn path=/trunk/; revision=20483
Tim Janik [Fri, 20 Jun 2008 10:57:08 +0000 (10:57 +0000)]
Sealed GtkAccelGroup and added
* gtk/gtkaccelgroup.[ch]: Added GObject properties for lock_count,
modifier_mask, acceleratables, n_accels and priv_accels. Added seal
macro for public struct members which should be private.
svn path=/trunk/; revision=20482
Tim Janik [Fri, 20 Jun 2008 10:57:01 +0000 (10:57 +0000)]
Deprecate xalign, yalign, ratio and obey_child direct access in GtkAspectFrame.
* gtk/gtkaspectframe.h: Deprecate public object fields by GSEAL.
svn path=/trunk/; revision=20481
Tim Janik [Fri, 20 Jun 2008 10:56:55 +0000 (10:56 +0000)]
Deprecate arrow_type and shadow_type direct access in GtkArrow.
* gtk/gtkarrow.h: Deprecate public object fields by GSEAL.
svn path=/trunk/; revision=20480
Tim Janik [Fri, 20 Jun 2008 10:56:50 +0000 (10:56 +0000)]
Added GSEAL to GtkAlignment.
* gtk/gtkalignment.h: Seal the object data with GSEAL.
svn path=/trunk/; revision=20479
Tim Janik [Fri, 20 Jun 2008 10:48:22 +0000 (10:48 +0000)]
Introduce GSEAL() macro.
* configure.in: define GSEAL() when generating gdkconfig.h
svn path=/trunk/; revision=20478
Michael Natterer [Fri, 20 Jun 2008 10:00:40 +0000 (10:00 +0000)]
Bug 538395 – gtk_combo_box_append_text() on non-compliant model
2008-06-20 Michael Natterer <mitch@imendio.com>
Bug 538395 – gtk_combo_box_append_text() on non-compliant model
segfaults
* gtk/gtkcombobox.c (gtk_combo_box_append_text)
(gtk_combo_box_insert_text)
(gtk_combo_box_prepend_text)
(gtk_combo_box_remove_text)
(gtk_combo_box_real_get_active_text): apply patch from Christian
Dywan which adds the needed g_return_if_fail() to prevent the
crashes.
svn path=/trunk/; revision=20477
Cody Russell [Fri, 20 Jun 2008 05:12:24 +0000 (05:12 +0000)]
Rename gdk_window_new -> _gdk_window_new and gdk_window_reparent ->
2008-06-20 Cody Russell <cody@jhu.edu>
* gdk/directfb/gdkwindow-directfb.c:
Rename gdk_window_new -> _gdk_window_new and
gdk_window_reparent -> _gdk_window_reparent to fix
the build. (#539095, Sebastien Bacher)
svn path=/trunk/; revision=20476
Johan Dahlin [Thu, 19 Jun 2008 20:40:06 +0000 (20:40 +0000)]
Remove svn:executable property
svn path=/trunk/; revision=20475
Johan Dahlin [Thu, 19 Jun 2008 20:36:01 +0000 (20:36 +0000)]
Remove executable property
svn path=/trunk/; revision=20474
Johan Dahlin [Thu, 19 Jun 2008 19:09:50 +0000 (19:09 +0000)]
remove an unused variable and cast accel_path to gchar, just like in
2008-06-19 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkmenuitem.c: remove an unused variable and cast
accel_path to gchar, just like in gtkmenu.c
svn path=/trunk/; revision=20473
Matthias Clasen [Thu, 19 Jun 2008 19:04:22 +0000 (19:04 +0000)]
Use GIO for this.
* gtk/gtkrecentmanager.c (get_icon_for_mime_type): Use GIO
for this.
svn path=/trunk/; revision=20472
Johan Dahlin [Thu, 19 Jun 2008 17:42:14 +0000 (17:42 +0000)]
Fix a typo in a comment
2008-06-19 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkprintbackend.c: Fix a typo in a comment
svn path=/trunk/; revision=20471
Johan Dahlin [Thu, 19 Jun 2008 14:19:34 +0000 (14:19 +0000)]
Cast buf to unsigned char to avoid two compiler warnings.
2008-06-19 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkhsv.c (paint_ring, paint_triangle):
Cast buf to unsigned char to avoid two compiler
warnings.
svn path=/trunk/; revision=20470
Johan Dahlin [Thu, 19 Jun 2008 14:08:59 +0000 (14:08 +0000)]
Do not ignore the return value of g_slist_remove. gtkstyle.c changes
2008-06-19 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkclist.c:
* gtk/gtkstyle.c (gtk_style_finalize):
Do not ignore the return value of g_slist_remove.
gtkstyle.c changes rubberstamped by Owen.
svn path=/trunk/; revision=20469
Johan Dahlin [Thu, 19 Jun 2008 14:07:28 +0000 (14:07 +0000)]
gdk_gc_set_dashes expects a list of gint8, not guint8.
2008-06-19 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtktreeview.c (gtk_tree_view_set_grid_lines),
(gtk_tree_view_set_enable_tree_lines):
gdk_gc_set_dashes expects a list of gint8, not guint8.
svn path=/trunk/; revision=20468
Johan Dahlin [Thu, 19 Jun 2008 13:43:51 +0000 (13:43 +0000)]
Remove an unused variable and cast to gchar to avoid a compiler warning.
2008-06-19 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkmenu.c (gtk_menu_set_accel_path):
Remove an unused variable and cast to gchar to avoid a compiler
warning.
svn path=/trunk/; revision=20467
Priit Laes [Thu, 19 Jun 2008 13:05:14 +0000 (13:05 +0000)]
Translation updated by Ivar Smolin
2008-06-19 Priit Laes <plaes at svn dot gnome dot org>
* et.po: Translation updated by Ivar Smolin
svn path=/trunk/; revision=20466
Christian Persch [Thu, 19 Jun 2008 12:55:57 +0000 (12:55 +0000)]
Add clipboard convenience helpers for URIs. Bug #537639.
svn path=/trunk/; revision=20465
Christian Persch [Thu, 19 Jun 2008 12:52:40 +0000 (12:52 +0000)]
Use gtk_drag_[dest|source]_add_[text|uri]_targets(), and simplify code. Bug #516092.
svn path=/trunk/; revision=20464
Christian Persch [Thu, 19 Jun 2008 12:47:48 +0000 (12:47 +0000)]
Use g_set_error_literal where appropriate. Bug #538640.
svn path=/trunk/; revision=20463
Johan Dahlin [Thu, 19 Jun 2008 12:25:19 +0000 (12:25 +0000)]
Use g_object_new instead of gtk_widget_new
2008-06-19 Johan Dahlin <jdahlin@async.com.br>
* demos/testpixbuf.c (new_testrgb_window):
* gtk/gtkctree.c (gtk_ctree_new_with_titles):
* gtk/gtkitemfactory.c (gtk_item_factory_construct),
(gtk_item_factory_create_item):
* gtk/gtkmenu.c (gtk_menu_set_tearoff_state):
* gtk/gtkprogressbar.c (gtk_progress_bar_new),
(gtk_progress_bar_new_with_adjustment):
* gtk/gtkscrolledwindow.c (gtk_scrolled_window_new):
* gtk/gtktext.c (gtk_text_new):
* gtk/gtkviewport.c (gtk_viewport_new):
* tests/simple.c (main):
* tests/testgtk.c (create_statusbar), (create_get_image),
(create_saved_position), (create_tooltips), (create_cursors),
(create_display_screen), (create_progress_bar), (create_idle_test):
* tests/testmultidisplay.c (make_selection_dialog), (main):
* tests/testmultiscreen.c (main):
* tests/testrgb.c (new_testrgb_window):
Use g_object_new instead of gtk_widget_new
svn path=/trunk/; revision=20462
Johan Dahlin [Thu, 19 Jun 2008 12:16:44 +0000 (12:16 +0000)]
Remove an unused prototype.
2008-06-19 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtkcellrendererpixbuf.c: Remove an unused prototype.
svn path=/trunk/; revision=20461
Johan Dahlin [Thu, 19 Jun 2008 12:15:55 +0000 (12:15 +0000)]
Remove an unused variable.
2008-06-19 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtklabel.c (gtk_label_set_text_with_mnemonic): Remove
an unused variable.
svn path=/trunk/; revision=20460
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
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
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
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
Matthias Clasen [Wed, 18 Jun 2008 16:14:59 +0000 (16:14 +0000)]
Add some more standard icon names
svn path=/trunk/; revision=20453
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
Matthias Clasen [Wed, 18 Jun 2008 15:15:54 +0000 (15:15 +0000)]
Add image/x-win-bitmap mimetype
svn path=/trunk/; revision=20451
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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