[dia] [gtk-deprecated] Use gtk_dialog_get_action_area()
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia] [gtk-deprecated] Use gtk_dialog_get_action_area()
- Date: Sun, 19 Aug 2012 17:37:16 +0000 (UTC)
commit b4eefa3d3622bec23f4bd0fd0d132e0fe30e06d4
Author: Hans Breuer <hans breuer org>
Date: Mon Jul 30 20:07:53 2012 +0200
[gtk-deprecated] Use gtk_dialog_get_action_area()
app/layer_dialog.c | 9 +++++----
lib/dialogs.c | 4 ++--
plug-ins/postscript/paginate_psprint.c | 2 +-
3 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/app/layer_dialog.c b/app/layer_dialog.c
index 164f907..556cd4a 100644
--- a/app/layer_dialog.c
+++ b/app/layer_dialog.c
@@ -442,11 +442,12 @@ layer_dialog_create(void)
gtk_box_pack_start (GTK_BOX (vbox), button_box, FALSE, FALSE, 2);
gtk_widget_show (button_box);
- gtk_container_set_border_width(GTK_CONTAINER(GTK_DIALOG(dialog)->action_area),
+ gtk_container_set_border_width(GTK_CONTAINER(
+ gtk_dialog_get_action_area (GTK_DIALOG(dialog))),
2);
button = gtk_button_new_from_stock (GTK_STOCK_CLOSE);
- gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->action_area),
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_action_area (GTK_DIALOG(dialog))),
button, TRUE, TRUE, 0);
g_signal_connect_swapped(G_OBJECT (button), "clicked",
G_CALLBACK(gtk_widget_hide),
@@ -1241,7 +1242,7 @@ layer_dialog_edit_layer (DiaLayerWidget *layer_widget, Diagram *dia, Layer *laye
#else
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
#endif
- gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog->dialog)->action_area),
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_action_area (GTK_DIALOG (dialog->dialog))),
button, TRUE, TRUE, 0);
if (layer_widget)
g_signal_connect (G_OBJECT (button), "clicked",
@@ -1262,7 +1263,7 @@ layer_dialog_edit_layer (DiaLayerWidget *layer_widget, Diagram *dia, Layer *laye
#else
GTK_WIDGET_SET_FLAGS (button, GTK_CAN_DEFAULT);
#endif
- gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog->dialog)->action_area),
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_action_area (GTK_DIALOG (dialog->dialog))),
button, TRUE, TRUE, 0);
g_signal_connect (G_OBJECT (button), "clicked",
G_CALLBACK(edit_layer_cancel_callback),
diff --git a/lib/dialogs.c b/lib/dialogs.c
index 5f1a1fe..1f2cc36 100644
--- a/lib/dialogs.c
+++ b/lib/dialogs.c
@@ -51,9 +51,9 @@ dialog_make(char *title, char *okay_text, char *cancel_text,
*okay_button = gtk_button_new_with_label((okay_text!=NULL?okay_text:_("OK")));
*cancel_button = gtk_button_new_with_label((cancel_text!=NULL?cancel_text:_("Cancel")));
- gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog)->action_area),
+ gtk_container_add(GTK_CONTAINER(gtk_dialog_get_action_area(GTK_DIALOG(dialog))),
*okay_button);
- gtk_container_add(GTK_CONTAINER(GTK_DIALOG(dialog)->action_area),
+ gtk_container_add(GTK_CONTAINER(gtk_dialog_get_action_area(GTK_DIALOG(dialog))),
*cancel_button);
return dialog;
diff --git a/plug-ins/postscript/paginate_psprint.c b/plug-ins/postscript/paginate_psprint.c
index 2c54797..f36db52 100644
--- a/plug-ins/postscript/paginate_psprint.c
+++ b/plug-ins/postscript/paginate_psprint.c
@@ -309,7 +309,7 @@ diagram_print_ps(DiagramData *dia, const gchar* original_filename)
g_signal_connect(G_OBJECT(isofile), "toggled",
G_CALLBACK(change_entry_state), ofile);
- box = GTK_DIALOG(dialog)->action_area;
+ box = gtk_dialog_get_action_area(GTK_DIALOG(dialog));
button = gtk_button_new_with_label(_("OK"));
g_signal_connect(G_OBJECT(button), "clicked",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]