diff options
author | Javier Jardón <javierjc1982@gmail.com> | 2009-09-22 17:27:30 +0800 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2009-09-22 17:33:15 +0800 |
commit | 0eadd147c38a58cd235571d228e393216416cd3e (patch) | |
tree | 943359c4cb4d5ac6dcf797684322d5926f4c5c6a /src/bookmarks/ephy-bookmark-properties.c | |
parent | f279bbf2de2896f39ef08e52961e8638b9f1a29b (diff) | |
download | gsoc2013-epiphany-0eadd147c38a58cd235571d228e393216416cd3e.tar gsoc2013-epiphany-0eadd147c38a58cd235571d228e393216416cd3e.tar.gz gsoc2013-epiphany-0eadd147c38a58cd235571d228e393216416cd3e.tar.bz2 gsoc2013-epiphany-0eadd147c38a58cd235571d228e393216416cd3e.tar.lz gsoc2013-epiphany-0eadd147c38a58cd235571d228e393216416cd3e.tar.xz gsoc2013-epiphany-0eadd147c38a58cd235571d228e393216416cd3e.tar.zst gsoc2013-epiphany-0eadd147c38a58cd235571d228e393216416cd3e.zip |
GTK+ 2.17.11 is now the required version
I've used all the GTK+ 2.17.11 api available, still missing:
GTK_WIDGET_REALIZED (GTK_WIDGET ())
GTK_WIDGET_MAPPED (GTK_WIDGET ())
GTK_ENTRY->im_context
GTK_STATUSBAR->frame
GTK_STATUSBAR->label
GTK_MESSAGE_DIALOG->label
https://bugzilla.gnome.org/show_bug.cgi?id=595791
Signed-off-by: Xan Lopez <xan@gnome.org>
Diffstat (limited to 'src/bookmarks/ephy-bookmark-properties.c')
-rw-r--r-- | src/bookmarks/ephy-bookmark-properties.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/bookmarks/ephy-bookmark-properties.c b/src/bookmarks/ephy-bookmark-properties.c index 83174506f..ed8f9b2cd 100644 --- a/src/bookmarks/ephy-bookmark-properties.c +++ b/src/bookmarks/ephy-bookmark-properties.c @@ -489,6 +489,7 @@ ephy_bookmark_properties_constructor (GType type, EphyBookmarkProperties *properties; EphyBookmarkPropertiesPrivate *priv; GtkWidget *widget, *table, *label, *entry, *container; + GtkWidget *content_area, *action_area; GtkWindow *window; GtkDialog *dialog; gboolean lockdown; @@ -526,10 +527,11 @@ ephy_bookmark_properties_constructor (GType type, lockdown = eel_gconf_get_boolean (CONF_LOCKDOWN_DISABLE_BOOKMARK_EDITING); update_window_title (properties); + content_area = gtk_dialog_get_content_area (dialog); gtk_dialog_set_has_separator (dialog, FALSE); gtk_container_set_border_width (GTK_CONTAINER (properties), 5); - gtk_box_set_spacing (GTK_BOX (dialog->vbox), 2); + gtk_box_set_spacing (GTK_BOX (content_area), 2); table = gtk_table_new (4, 2, FALSE); gtk_table_set_row_spacings (GTK_TABLE (table), 6); @@ -604,7 +606,7 @@ ephy_bookmark_properties_constructor (GType type, gtk_widget_show (widget); gtk_table_attach (GTK_TABLE (table), widget, 1, 2, 3, 4, GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_EXPAND, 0, 0); - gtk_box_pack_start (GTK_BOX (dialog->vbox), table, TRUE, TRUE, 0); + gtk_box_pack_start (GTK_BOX (content_area), table, TRUE, TRUE, 0); priv->warning = gtk_toggle_button_new (); gtk_button_set_focus_on_click (GTK_BUTTON (priv->warning), FALSE); @@ -627,11 +629,13 @@ ephy_bookmark_properties_constructor (GType type, gtk_dialog_add_button (dialog, GTK_STOCK_HELP, GTK_RESPONSE_HELP); + + action_area = gtk_dialog_get_action_area (dialog); - gtk_box_pack_end (GTK_BOX (dialog->action_area), + gtk_box_pack_end (GTK_BOX (action_area), priv->warning, FALSE, TRUE, 0); - gtk_button_box_set_child_secondary - (GTK_BUTTON_BOX (dialog->action_area), priv->warning, TRUE); + gtk_button_box_set_child_secondary (GTK_BUTTON_BOX (action_area), + priv->warning, TRUE); if (priv->creating) { |