]> www.fi.muni.cz Git - evince.git/commitdiff
[shell] Dialogues have no separators on gtk 3
authorChristian Persch <chpe@gnome.org>
Sat, 11 Sep 2010 21:50:20 +0000 (23:50 +0200)
committerChristian Persch <chpe@gnome.org>
Sun, 26 Sep 2010 14:44:39 +0000 (16:44 +0200)
shell/ev-annotation-properties-dialog.c
shell/ev-convert-metadata.c
shell/ev-password-view.c
shell/ev-properties-dialog.c
shell/ev-window.c

index 0f5c6e17c877d1ea88a640eee1123c91764729aa..68013f27e21f5858f93f926484fe13d098cfa14c 100644 (file)
@@ -139,7 +139,9 @@ ev_annotation_properties_dialog_init (EvAnnotationPropertiesDialog *annot_dialog
        gtk_window_set_title (GTK_WINDOW (annot_dialog), _("Annotation Properties"));
        gtk_window_set_destroy_with_parent (GTK_WINDOW (annot_dialog), TRUE);
        gtk_container_set_border_width (GTK_CONTAINER (annot_dialog), 5);
+#if !GTK_CHECK_VERSION (2, 90, 7)
        gtk_dialog_set_has_separator (dialog, FALSE);
+#endif
        gtk_dialog_add_buttons (dialog,
                                GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
                                GTK_STOCK_APPLY, GTK_RESPONSE_APPLY,
index 52e59fc96ed9bcf8abde208695cc4bdb3870705b..5ee725c38c9a948c77cdce1bfee7f7b749ff298e 100644 (file)
@@ -164,7 +164,11 @@ show_progress_dialog (ConvertData *data)
 
        dialog = gtk_dialog_new_with_buttons (_("Converting metadata"),
                                              NULL,
+#if GTK_CHECK_VERSION (2, 90, 8)
+                                              0,
+#else
                                              GTK_DIALOG_NO_SEPARATOR,
+#endif
                                              GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
                                              NULL);
        action_area = gtk_dialog_get_action_area (GTK_DIALOG (dialog));
index bb5ba31348ea194c6ab2fe64482807c74ece3825..6998b0b013942f17dc3991d89b661509334e1fdf 100644 (file)
@@ -255,7 +255,9 @@ ev_password_view_ask_password (EvPasswordView *password_view)
        action_area = gtk_dialog_get_action_area (dialog);
 
        /* Set the dialog up with HIG properties */
-       gtk_dialog_set_has_separator (dialog, FALSE);
+#if !GTK_CHECK_VERSION (2, 90, 7)
+        gtk_dialog_set_has_separator (dialog, FALSE);
+#endif
        gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
        gtk_box_set_spacing (GTK_BOX (content_area), 2); /* 2 * 5 + 2 = 12 */
        gtk_container_set_border_width (GTK_CONTAINER (action_area), 5);
index e3785bf1bdb8819ef97dc684dc09b370ab9afd3e..dac890b8e51380a0ce5c3113a7dd1196317c54ca 100644 (file)
@@ -61,7 +61,9 @@ ev_properties_dialog_init (EvPropertiesDialog *properties)
 
        gtk_window_set_title (GTK_WINDOW (properties), _("Properties"));
        gtk_window_set_destroy_with_parent (GTK_WINDOW (properties), TRUE);
-       gtk_dialog_set_has_separator (GTK_DIALOG (properties), FALSE);
+#if !GTK_CHECK_VERSION (2, 90, 7)
+        gtk_dialog_set_has_separator (GTK_DIALOG (properties), FALSE);
+#endif
        gtk_container_set_border_width (GTK_CONTAINER (properties), 5);
        gtk_box_set_spacing (content_area, 2);
 
index 9aa3926be42b9ba7571af35c0473c980ea391cfb..01c5e9f75e4bcd5117231f78e94993a6243a1e78 100644 (file)
@@ -4211,7 +4211,9 @@ ev_window_cmd_edit_toolbar (GtkAction *action, EvWindow *ev_window)
        gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_CLOSE);
        gtk_container_set_border_width (GTK_CONTAINER (GTK_DIALOG (dialog)), 5);
        gtk_box_set_spacing (GTK_BOX (content_area), 2);
+#if !GTK_CHECK_VERSION (2, 90, 7)
        gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
+#endif
        gtk_window_set_default_size (GTK_WINDOW (dialog), 500, 400);
 
        toolbar = EGG_EDITABLE_TOOLBAR (ev_window->priv->toolbar);