depend on glib >= 2.10.2, gtk+ >= 2.8.18 and pango >= 1.12.3. Define

2006-07-05  Michael Natterer  <mitch@gimp.org>

	* configure.in: depend on glib >= 2.10.2, gtk+ >= 2.8.18
	and pango >= 1.12.3. Define FOO_DISABLE_DEPRECATED also for
	glib 2.12, gtk+ 2.10 and pango 2.14

	* app/sanity.c
	* app/gui/gui.c: adjusted sanity checks accordingly.

	* app/dialogs/stroke-dialog.c
	* app/widgets/gimpeditor.c
	* app/widgets/gimpuimanager.c
	* libgimpwidgets/gimphelpui.c
	* libgimpwidgets/gimpmemsizeentry.c
	* plug-ins/helpbrowser/gimpthrobber.c: replace gtk_object_sink()
	by combinations of g_object_ref_sink() and g_object_unref().
This commit is contained in:
Michael Natterer 2006-07-05 13:40:47 +00:00 committed by Michael Natterer
parent 73f770122b
commit 6feb7bb82c
10 changed files with 51 additions and 34 deletions

View File

@ -1,3 +1,20 @@
2006-07-05 Michael Natterer <mitch@gimp.org>
* configure.in: depend on glib >= 2.10.2, gtk+ >= 2.8.18
and pango >= 1.12.3. Define FOO_DISABLE_DEPRECATED also for
glib 2.12 and gtk+ 2.10.
* app/sanity.c
* app/gui/gui.c: adjusted sanity checks accordingly.
* app/dialogs/stroke-dialog.c
* app/widgets/gimpeditor.c
* app/widgets/gimpuimanager.c
* libgimpwidgets/gimphelpui.c
* libgimpwidgets/gimpmemsizeentry.c
* plug-ins/helpbrowser/gimpthrobber.c: replace gtk_object_sink()
by combinations of g_object_ref_sink() and g_object_unref().
2006-07-05 Sven Neumann <sven@gimp.org>
* configure.in: bumped version to 2.3.11.

View File

@ -141,7 +141,8 @@ stroke_dialog_new (GimpItem *item,
paint_radio = g_object_ref (group->data);
gtk_container_remove (GTK_CONTAINER (radio_box), paint_radio);
gtk_object_sink (GTK_OBJECT (radio_box));
g_object_ref_sink (radio_box);
g_object_unref (radio_box);
{
PangoFontDescription *font_desc;

View File

@ -256,7 +256,7 @@ gui_sanity_check (void)
#define GTK_REQUIRED_MAJOR 2
#define GTK_REQUIRED_MINOR 8
#define GTK_REQUIRED_MICRO 8
#define GTK_REQUIRED_MICRO 18
mismatch = gtk_check_version (GTK_REQUIRED_MAJOR,
GTK_REQUIRED_MINOR,

View File

@ -63,7 +63,7 @@ sanity_check_glib (void)
const gchar *mismatch;
#define GLIB_REQUIRED_MAJOR 2
#define GLIB_REQUIRED_MINOR 8
#define GLIB_REQUIRED_MINOR 10
#define GLIB_REQUIRED_MICRO 2
mismatch = glib_check_version (GLIB_REQUIRED_MAJOR,

View File

@ -534,7 +534,8 @@ gimp_editor_add_stock_box (GimpEditor *editor,
g_list_free (children);
gtk_object_sink (GTK_OBJECT (hbox));
g_object_ref_sink (hbox);
g_object_unref (hbox);
return first_button;
}

View File

@ -725,7 +725,10 @@ gimp_ui_manager_entry_ensure (GimpUIManager *manager,
/* take ownership of popup menus */
if (GTK_IS_MENU (entry->widget))
gtk_object_sink (GTK_OBJECT (entry->widget));
{
g_object_ref_sink (entry->widget);
g_object_unref (entry->widget);
}
if (entry->setup_func)
entry->setup_func (manager, entry->ui_path);

View File

@ -40,10 +40,10 @@ m4_define([gimp_stable],
m4_define([gimp_full_name], [GNU Image Manipulation Program])
# required versions of other packages
m4_define([glib_required_version], [2.8.2])
m4_define([gtk_required_version], [2.8.8])
m4_define([glib_required_version], [2.10.2])
m4_define([gtk_required_version], [2.8.18])
m4_define([gdk_pixbuf_required_version], [gtk_required_version])
m4_define([pangoft2_required_version], [1.10.0])
m4_define([pangoft2_required_version], [1.12.3])
m4_define([fontconfig_required_version], [2.2.0])
m4_define([gtkdoc_required_version], [1.0])
m4_define([gtkhtml2_required_version], [2.0.0])
@ -399,13 +399,13 @@ AM_PATH_GLIB_2_0(glib_required_version, :,
PKG_CHECK_MODULES(GMODULE_NO_EXPORT, gmodule-no-export-2.0)
AC_MSG_CHECKING([if GLib is version 2.11.0 or newer])
if $PKG_CONFIG --atleast-version=2.11.0 glib-2.0; then
have_glib_2_11=yes
AC_MSG_CHECKING([if GLib is version 2.13.0 or newer])
if $PKG_CONFIG --atleast-version=2.13.0 glib-2.0; then
have_glib_2_13=yes
else
have_glib_2_11=no
have_glib_2_13=no
fi
AC_MSG_RESULT($have_glib_2_11)
AC_MSG_RESULT($have_glib_2_13)
dnl Check for bind_textdomain_codeset, including -lintl if GLib brings it in.
gimp_save_LIBS=$LIBS
@ -419,13 +419,13 @@ AC_PATH_XTRA
AM_PATH_GTK_2_0(gtk_required_version, :,
AC_MSG_ERROR(Test for GTK+ failed. See the file 'INSTALL' for help.))
AC_MSG_CHECKING([if GTK+ is version 2.9.0 or newer])
if $PKG_CONFIG --atleast-version=2.9.0 gtk+-2.0; then
have_gtk_2_9=yes
AC_MSG_CHECKING([if GTK+ is version 2.11.0 or newer])
if $PKG_CONFIG --atleast-version=2.11.0 gtk+-2.0; then
have_gtk_2_11=yes
else
have_gtk_2_9=no
have_gtk_2_11=no
fi
AC_MSG_RESULT($have_gtk_2_9)
AC_MSG_RESULT($have_gtk_2_11)
PKG_CHECK_MODULES(GDK_PIXBUF, gdk-pixbuf-2.0 >= gdk_pixbuf_required_version)
@ -443,13 +443,13 @@ PKG_CHECK_MODULES(PANGOFT2, pangoft2 >= pangoft2_required_version, :,
*** We require Pango with the optional support for FreeType2 compiled in.
*** See the file 'INSTALL' for more help.]))
AC_MSG_CHECKING([if Pango is version 1.13.0 or newer])
if $PKG_CONFIG --atleast-version=1.13.0 pango; then
have_pango_1_13=yes
AC_MSG_CHECKING([if Pango is version 1.15.0 or newer])
if $PKG_CONFIG --atleast-version=1.15.0 pango; then
have_pango_1_15=yes
else
have_pango_1_13=no
have_pango_1_15=no
fi
AC_MSG_RESULT($have_pango_1_13)
AC_MSG_RESULT($have_pango_1_15)
gimp_save_CFLAGS=$CFLAGS
CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
@ -1596,15 +1596,15 @@ AC_SUBST(GIMP_MKENUMS)
CPPFLAGS="${CPPFLAGS} -DGIMP_DISABLE_DEPRECATED"
if test "x$have_glib_2_11" != "xyes"; then
if test "x$have_glib_2_13" != "xyes"; then
CPPFLAGS="${CPPFLAGS} -DG_DISABLE_DEPRECATED"
fi
if test "x$have_gtk_2_9" != "xyes"; then
if test "x$have_gtk_2_11" != "xyes"; then
CPPFLAGS="${CPPFLAGS} -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
fi
if test "x$have_pango_1_13" != "xyes"; then
if test "x$have_pango_1_15" != "xyes"; then
CPPFLAGS="${CPPFLAGS} -DPANGO_DISABLE_DEPRECATED"
fi

View File

@ -86,8 +86,7 @@ _gimp_help_init (void)
tool_tips = gtk_tooltips_new ();
/* take ownership of the tooltips */
g_object_ref (tool_tips);
gtk_object_sink (GTK_OBJECT (tool_tips));
g_object_ref_sink (tool_tips);
}
/**

View File

@ -189,8 +189,7 @@ gimp_memsize_entry_new (guint64 value,
#undef CAST
g_object_ref (entry->adjustment);
gtk_object_sink (GTK_OBJECT (entry->adjustment));
g_object_ref_sink (entry->adjustment);
gtk_entry_set_width_chars (GTK_ENTRY (entry->spinbutton), 10);
gtk_box_pack_start (GTK_BOX (entry), entry->spinbutton, FALSE, FALSE, 0);

View File

@ -339,10 +339,7 @@ gimp_throbber_set_image (GimpThrobber *button,
}
if (image)
{
g_object_ref (image);
gtk_object_sink (GTK_OBJECT (image));
}
g_object_ref_sink (image);
button->priv->image = image;