[dia] [gtk-deprecated] Use gtk_bin_get_child()
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [gtk-deprecated] Use gtk_bin_get_child()
- Date: Sun, 19 Aug 2012 17:37:26 +0000 (UTC)
commit c895214dfb41b586b7069ed5c83e404f8440b86a
Author: Hans Breuer <hans breuer org>
Date: Mon Jul 30 20:36:22 2012 +0200
[gtk-deprecated] Use gtk_bin_get_child()
app/preferences.c | 2 +-
lib/prop_inttypes.c | 4 ++--
lib/prop_pixbuf.c | 4 ++--
lib/propdialogs.c | 2 +-
objects/Database/table_dialog.c | 2 +-
objects/UML/class_attributes_dialog.c | 2 +-
objects/UML/class_operations_dialog.c | 4 ++--
objects/UML/class_templates_dialog.c | 2 +-
8 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/app/preferences.c b/app/preferences.c
index 1504942..3e55195 100644
--- a/app/preferences.c
+++ b/app/preferences.c
@@ -646,7 +646,7 @@ prefs_create_dialog(void)
#ifdef SCROLLED_PAGES
gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(notebook_page),
table);
- gtk_viewport_set_shadow_type(GTK_VIEWPORT(GTK_BIN(notebook_page)->child),
+ gtk_viewport_set_shadow_type(GTK_VIEWPORT(gtk_bin_get_child(GTK_BIN(notebook_page))),
GTK_SHADOW_NONE);
#endif /* SCROLLED_PAGES */
diff --git a/lib/prop_inttypes.c b/lib/prop_inttypes.c
index a94fddd..4464e71 100644
--- a/lib/prop_inttypes.c
+++ b/lib/prop_inttypes.c
@@ -156,9 +156,9 @@ static void
bool_toggled(GtkWidget *wid)
{
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(wid)))
- gtk_label_set_text(GTK_LABEL(GTK_BIN(wid)->child), _("Yes"));
+ gtk_label_set_text(GTK_LABEL(gtk_bin_get_child(GTK_BIN(wid))), _("Yes"));
else
- gtk_label_set_text(GTK_LABEL(GTK_BIN(wid)->child), _("No"));
+ gtk_label_set_text(GTK_LABEL(gtk_bin_get_child(GTK_BIN(wid))), _("No"));
}
static Property *
diff --git a/lib/prop_pixbuf.c b/lib/prop_pixbuf.c
index 50cba0c..32c8c8f 100644
--- a/lib/prop_pixbuf.c
+++ b/lib/prop_pixbuf.c
@@ -267,9 +267,9 @@ static void
_pixbuf_toggled(GtkWidget *wid)
{
if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON(wid)))
- gtk_label_set_text(GTK_LABEL(GTK_BIN(wid)->child), _("Yes"));
+ gtk_label_set_text(GTK_LABEL(gtk_bin_get_child(GTK_BIN(wid))), _("Yes"));
else
- gtk_label_set_text(GTK_LABEL(GTK_BIN(wid)->child), _("No"));
+ gtk_label_set_text(GTK_LABEL(gtk_bin_get_child(GTK_BIN(wid))), _("No"));
}
static GtkWidget *
diff --git a/lib/propdialogs.c b/lib/propdialogs.c
index 3b1e4e1..ceb56c3 100644
--- a/lib/propdialogs.c
+++ b/lib/propdialogs.c
@@ -272,7 +272,7 @@ prop_dialog_add_properties(PropDialog *dialog, GPtrArray *props)
gtk_box_pack_start(GTK_BOX (dialog->widget), swin, TRUE, TRUE, 0);
gtk_widget_show (swin);
gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (swin), vbox);
- gtk_viewport_set_shadow_type(GTK_VIEWPORT(GTK_BIN(swin)->child), GTK_SHADOW_NONE);
+ gtk_viewport_set_shadow_type(GTK_VIEWPORT(gtk_bin_get_child(GTK_BIN(swin))), GTK_SHADOW_NONE);
gtk_widget_show (vbox);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (swin), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
prop_dialog_container_push (dialog, swin);
diff --git a/objects/Database/table_dialog.c b/objects/Database/table_dialog.c
index 7d71b5e..64ad052 100644
--- a/objects/Database/table_dialog.c
+++ b/objects/Database/table_dialog.c
@@ -837,7 +837,7 @@ attributes_page_update_cur_attr_item (TablePropDialog * prop_dialog)
if (attr != NULL)
{
attributes_page_values_to_attribute (prop_dialog, attr);
- label = GTK_LABEL (GTK_BIN (prop_dialog->cur_attr_list_item)->child);
+ label = GTK_LABEL (gtk_bin_get_child(GTK_BIN (prop_dialog->cur_attr_list_item)));
str = table_get_attribute_string (attr);
gtk_label_set_text (label, str);
g_free (str);
diff --git a/objects/UML/class_attributes_dialog.c b/objects/UML/class_attributes_dialog.c
index 0b6a39c..ce05bff 100644
--- a/objects/UML/class_attributes_dialog.c
+++ b/objects/UML/class_attributes_dialog.c
@@ -103,7 +103,7 @@ _attributes_get_current_values(UMLClassDialog *prop_dialog)
g_object_get_data(G_OBJECT(prop_dialog->current_attr), "user_data");
if (current_attr != NULL) {
attributes_get_values(prop_dialog, current_attr);
- label = GTK_LABEL(GTK_BIN(prop_dialog->current_attr)->child);
+ label = GTK_LABEL(gtk_bin_get_child(GTK_BIN(prop_dialog->current_attr)));
new_str = uml_get_attribute_string(current_attr);
gtk_label_set_text (label, new_str);
g_free (new_str);
diff --git a/objects/UML/class_operations_dialog.c b/objects/UML/class_operations_dialog.c
index 927c9ce..607ba22 100644
--- a/objects/UML/class_operations_dialog.c
+++ b/objects/UML/class_operations_dialog.c
@@ -99,7 +99,7 @@ parameters_get_current_values(UMLClassDialog *prop_dialog)
g_object_get_data(G_OBJECT(prop_dialog->current_param), "user_data");
if (current_param != NULL) {
parameters_get_values(prop_dialog, current_param);
- label = GTK_LABEL(GTK_BIN(prop_dialog->current_param)->child);
+ label = GTK_LABEL(gtk_bin_get_child(GTK_BIN(prop_dialog->current_param)));
new_str = uml_get_parameter_string(current_param);
gtk_label_set_text(label, new_str);
g_free(new_str);
@@ -436,7 +436,7 @@ _operations_get_current_values(UMLClassDialog *prop_dialog)
g_object_get_data(G_OBJECT(prop_dialog->current_op), "user_data");
if (current_op != NULL) {
operations_get_values(prop_dialog, current_op);
- label = GTK_LABEL(GTK_BIN(prop_dialog->current_op)->child);
+ label = GTK_LABEL(gtk_bin_get_child(GTK_BIN(prop_dialog->current_op)));
new_str = uml_get_operation_string(current_op);
gtk_label_set_text (label, new_str);
g_free (new_str);
diff --git a/objects/UML/class_templates_dialog.c b/objects/UML/class_templates_dialog.c
index 52ba7d1..9f9fadb 100644
--- a/objects/UML/class_templates_dialog.c
+++ b/objects/UML/class_templates_dialog.c
@@ -79,7 +79,7 @@ _templates_get_current_values(UMLClassDialog *prop_dialog)
g_object_get_data(G_OBJECT(prop_dialog->current_templ), "user_data");
if (current_param != NULL) {
templates_get_values(prop_dialog, current_param);
- label = GTK_LABEL(GTK_BIN(prop_dialog->current_templ)->child);
+ label = GTK_LABEL(gtk_bin_get_child(GTK_BIN(prop_dialog->current_templ)));
new_str = uml_get_formalparameter_string (current_param);
gtk_label_set_text(label, new_str);
g_free(new_str);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]