[dia] Don't use deprecated function gtk_widget_unref().
- From: Hans Breuer <hans src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [dia] Don't use deprecated function gtk_widget_unref().
- Date: Fri, 31 Jul 2009 16:58:19 +0000 (UTC)
commit d9a2c8263f87e04ca13643747a0436b4d1eede63
Author: Adam Buchbinder <adam buchbinder gmail com>
Date: Tue Jul 28 12:03:13 2009 -0400
Don't use deprecated function gtk_widget_unref().
Replaced gtk_widget_unref() with g_object_unref():
http://library.gnome.org/devel/gtk/stable/GtkWidget.html#gtk-widget-unref
Signed-off-by: Hans Breuer <hans breuer org>
app/layer_dialog.c | 4 ++--
lib/diaarrowchooser.c | 4 ++--
lib/dialinechooser.c | 2 +-
objects/Database/table_dialog.c | 4 ++--
objects/UML/class_dialog.c | 16 ++++++++--------
5 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/app/layer_dialog.c b/app/layer_dialog.c
index 65b1f93..5af4cbe 100644
--- a/app/layer_dialog.c
+++ b/app/layer_dialog.c
@@ -602,7 +602,7 @@ layer_dialog_raise_callback(GtkWidget *widget, gpointer gdata)
gtk_list_insert_items(GTK_LIST(layer_dialog->layer_list),
list, pos - 1);
- gtk_widget_unref(selected);
+ g_object_unref(selected);
gtk_list_select_item(GTK_LIST(layer_dialog->layer_list), pos-1);
@@ -647,7 +647,7 @@ layer_dialog_lower_callback(GtkWidget *widget, gpointer gdata)
gtk_list_insert_items(GTK_LIST(layer_dialog->layer_list),
list, pos + 1);
- gtk_widget_unref(selected);
+ g_object_unref(selected);
gtk_list_select_item(GTK_LIST(layer_dialog->layer_list), pos+1);
diff --git a/lib/diaarrowchooser.c b/lib/diaarrowchooser.c
index 80a69c3..c9cd77a 100644
--- a/lib/diaarrowchooser.c
+++ b/lib/diaarrowchooser.c
@@ -23,7 +23,7 @@
* \ingroup diawidgets
*/
#include <config.h>
-#undef GTK_DISABLE_DEPRECATED /* gtk_object_sink, gtk_widget_unref */
+#undef GTK_DISABLE_DEPRECATED /* gtk_object_sink */
#include <gtk/gtk.h>
#include "intl.h"
#include "widgets.h"
@@ -429,7 +429,7 @@ dia_arrow_chooser_new(gboolean left, DiaChangeArrowCallback callback,
g_object_ref(G_OBJECT(menu));
gtk_object_sink(GTK_OBJECT(menu));
g_object_set_data_full(G_OBJECT(chooser), button_menu_key, menu,
- (GtkDestroyNotify)gtk_widget_unref);
+ (GtkDestroyNotify)g_object_unref);
/* although from ARROW_NONE to MAX_ARROW_TYPE-1 this is sorted by *index* to keep the order consistent with earlier releases */
for (i = ARROW_NONE; i < MAX_ARROW_TYPE; ++i) {
ArrowType arrow_type = arrow_type_from_index(i);
diff --git a/lib/dialinechooser.c b/lib/dialinechooser.c
index d609e15..af09df3 100644
--- a/lib/dialinechooser.c
+++ b/lib/dialinechooser.c
@@ -323,7 +323,7 @@ dia_line_chooser_init (DiaLineChooser *lchooser)
g_object_ref(G_OBJECT(menu));
gtk_object_sink(GTK_OBJECT(menu));
g_object_set_data_full(G_OBJECT(lchooser), button_menu_key, menu,
- (GDestroyNotify)gtk_widget_unref);
+ (GDestroyNotify)g_object_unref);
#endif
for (i = 0; i <= LINESTYLE_DOTTED; i++) {
mi = gtk_menu_item_new();
diff --git a/objects/Database/table_dialog.c b/objects/Database/table_dialog.c
index cae2aed..2523398 100644
--- a/objects/Database/table_dialog.c
+++ b/objects/Database/table_dialog.c
@@ -1246,7 +1246,7 @@ attributes_list_moveup_button_clicked_cb (GtkWidget * button, Table * table)
list = g_list_prepend (NULL, list_item);
gtk_list_remove_items (gtklist, list);
gtk_list_insert_items (gtklist, list, i);
- gtk_widget_unref (list_item);
+ g_object_unref (list_item);
gtk_list_select_child (gtklist, list_item);
}
@@ -1278,7 +1278,7 @@ attributes_list_movedown_button_clicked_cb (GtkWidget * button, Table * table)
list = g_list_prepend (NULL, list_item);
gtk_list_remove_items (gtklist, list);
gtk_list_insert_items (gtklist, list, i);
- gtk_widget_unref (list_item);
+ g_object_unref (list_item);
gtk_list_select_child (gtklist, list_item);
}
diff --git a/objects/UML/class_dialog.c b/objects/UML/class_dialog.c
index 817fa7d..22843d6 100644
--- a/objects/UML/class_dialog.c
+++ b/objects/UML/class_dialog.c
@@ -884,7 +884,7 @@ attributes_list_move_up_callback(GtkWidget *button,
list = g_list_prepend(NULL, list_item);
gtk_list_remove_items(gtklist, list);
gtk_list_insert_items(gtklist, list, i);
- gtk_widget_unref(list_item);
+ g_object_unref(list_item);
gtk_list_select_child(gtklist, list_item);
}
@@ -915,7 +915,7 @@ attributes_list_move_down_callback(GtkWidget *button,
list = g_list_prepend(NULL, list_item);
gtk_list_remove_items(gtklist, list);
gtk_list_insert_items(gtklist, list, i);
- gtk_widget_unref(list_item);
+ g_object_unref(list_item);
gtk_list_select_child(gtklist, list_item);
}
@@ -1482,7 +1482,7 @@ parameters_list_move_up_callback(GtkWidget *button,
list = g_list_prepend(NULL, list_item);
gtk_list_remove_items(gtklist, list);
gtk_list_insert_items(gtklist, list, i);
- gtk_widget_unref(list_item);
+ g_object_unref(list_item);
gtk_list_select_child(gtklist, list_item);
@@ -1529,7 +1529,7 @@ parameters_list_move_down_callback(GtkWidget *button,
list = g_list_prepend(NULL, list_item);
gtk_list_remove_items(gtklist, list);
gtk_list_insert_items(gtklist, list, i);
- gtk_widget_unref(list_item);
+ g_object_unref(list_item);
gtk_list_select_child(gtklist, list_item);
@@ -1823,7 +1823,7 @@ operations_list_move_up_callback(GtkWidget *button,
list = g_list_prepend(NULL, list_item);
gtk_list_remove_items(gtklist, list);
gtk_list_insert_items(gtklist, list, i);
- gtk_widget_unref(list_item);
+ g_object_unref(list_item);
gtk_list_select_child(gtklist, list_item);
}
@@ -1854,7 +1854,7 @@ operations_list_move_down_callback(GtkWidget *button,
list = g_list_prepend(NULL, list_item);
gtk_list_remove_items(gtklist, list);
gtk_list_insert_items(gtklist, list, i);
- gtk_widget_unref(list_item);
+ g_object_unref(list_item);
gtk_list_select_child(gtklist, list_item);
}
@@ -2624,7 +2624,7 @@ templates_list_move_up_callback(GtkWidget *button,
list = g_list_prepend(NULL, list_item);
gtk_list_remove_items(gtklist, list);
gtk_list_insert_items(gtklist, list, i);
- gtk_widget_unref(list_item);
+ g_object_unref(list_item);
gtk_list_select_child(gtklist, list_item);
}
@@ -2654,7 +2654,7 @@ templates_list_move_down_callback(GtkWidget *button,
list = g_list_prepend(NULL, list_item);
gtk_list_remove_items(gtklist, list);
gtk_list_insert_items(gtklist, list, i);
- gtk_widget_unref(list_item);
+ g_object_unref(list_item);
gtk_list_select_child(gtklist, list_item);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]