[Xfce4-commits] [panel-plugins/xfce4-fsguard-plugin] 13/15: Stop directly accessing private vbox member, use gtk_dialog_get_content_area() instead
noreply at xfce.org
noreply at xfce.org
Thu Apr 28 12:07:56 CEST 2016
This is an automated email from the git hooks/post-receive script.
landry pushed a commit to branch master
in repository panel-plugins/xfce4-fsguard-plugin.
commit 757eac2bbfc1e50f6cb8300e9a07fac68998b3ee
Author: Landry Breuil <landry at xfce.org>
Date: Thu Apr 28 12:06:02 2016 +0200
Stop directly accessing private vbox member, use gtk_dialog_get_content_area() instead
---
panel-plugin/fsguard.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/panel-plugin/fsguard.c b/panel-plugin/fsguard.c
index d36c5b9..63d3d5e 100644
--- a/panel-plugin/fsguard.c
+++ b/panel-plugin/fsguard.c
@@ -625,7 +625,7 @@ fsguard_create_options (XfcePanelPlugin *plugin, FsGuard *fsguard)
gtk_table_set_row_spacings (GTK_TABLE (table1), BORDER);
gtk_table_set_col_spacings (GTK_TABLE (table1), BORDER);
gtk_container_set_border_width (GTK_CONTAINER (frame1), BORDER);
- gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), frame1,
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area(GTK_DIALOG(dialog))), frame1,
TRUE, TRUE, 0);
GtkWidget *label1 = gtk_label_new (_("Mount point"));
@@ -663,7 +663,7 @@ fsguard_create_options (XfcePanelPlugin *plugin, FsGuard *fsguard)
gtk_table_set_row_spacings (GTK_TABLE (table2), BORDER);
gtk_table_set_col_spacings (GTK_TABLE (table2), BORDER);
gtk_container_set_border_width (GTK_CONTAINER (frame2), BORDER);
- gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox), frame2,
+ gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area(GTK_DIALOG(dialog))), frame2,
TRUE, TRUE, 0);
GtkWidget *check1 = gtk_check_button_new_with_label (_("Name"));
@@ -730,7 +730,7 @@ fsguard_create_options (XfcePanelPlugin *plugin, FsGuard *fsguard)
G_CALLBACK (fsguard_check4_changed),
fsguard);
- gtk_widget_show_all (GTK_DIALOG (dialog)->vbox);
+ gtk_widget_show_all (GTK_WIDGET (dialog));
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
xfce_panel_plugin_unblock_menu (fsguard->plugin);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list