[dia] Don't use deprecated function gtk_rc_style_unref().
- From: Hans Breuer <hans src gnome org>
- To: svn-commits-list gnome org
- Subject: [dia] Don't use deprecated function gtk_rc_style_unref().
- Date: Sun, 24 May 2009 07:19:19 -0400 (EDT)
commit a7426a16d6b7fe71da5cffed65b79aa38fbe4d83
Author: Adam Buchbinder <adam buchbinder gmail com>
Date: Mon May 4 12:22:56 2009 -0400
Don't use deprecated function gtk_rc_style_unref().
Replaced gtk_rc_style_unref() with g_object_ref():
http://library.gnome.org/devel/gtk/stable/gtk-Resource-Files.html#gtk-rc-style-unref
Signed-off-by: Adam Buchbinder <adam buchbinder gmail com>
Signed-off-by: Hans Breuer <hans breuer org>
---
app/interface.c | 2 +-
app/layer_dialog.c | 2 +-
lib/widgets.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/interface.c b/app/interface.c
index 40510be..26885b3 100644
--- a/app/interface.c
+++ b/app/interface.c
@@ -541,7 +541,7 @@ use_integrated_ui_for_display_shell(DDisplay *ddisp, char *title)
rcstyle = gtk_rc_style_new ();
rcstyle->xthickness = rcstyle->ythickness = 0;
gtk_widget_modify_style (close_button, rcstyle);
- gtk_rc_style_unref (rcstyle),
+ g_object_unref (rcstyle),
image = gtk_image_new_from_stock (GTK_STOCK_CLOSE,
GTK_ICON_SIZE_MENU);
diff --git a/app/layer_dialog.c b/app/layer_dialog.c
index f069f41..a1ebfab 100644
--- a/app/layer_dialog.c
+++ b/app/layer_dialog.c
@@ -318,7 +318,7 @@ GtkWidget * create_layer_view_widget (void)
rcstyle = gtk_rc_style_new ();
rcstyle->xthickness = rcstyle->ythickness = 0;
gtk_widget_modify_style (hide_button, rcstyle);
- gtk_rc_style_unref (rcstyle);
+ g_object_unref (rcstyle);
image = gtk_image_new_from_stock (GTK_STOCK_CLOSE,
GTK_ICON_SIZE_MENU);
diff --git a/lib/widgets.c b/lib/widgets.c
index 9b4f84a..2d5ba2a 100644
--- a/lib/widgets.c
+++ b/lib/widgets.c
@@ -2188,7 +2188,7 @@ dia_toggle_button_new(GtkWidget *on_widget, GtkWidget *off_widget)
rcstyle = gtk_rc_style_new ();
rcstyle->xthickness = rcstyle->ythickness = 0;
gtk_widget_modify_style (button, rcstyle);
- gtk_rc_style_unref (rcstyle);
+ g_object_unref (rcstyle);
prop = g_new0(GValue, 1);
g_value_init(prop, G_TYPE_INT);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]