[evince] properties-dialog: Use headerbar and improve spacing and borders
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] properties-dialog: Use headerbar and improve spacing and borders
- Date: Sun, 16 Nov 2014 09:28:12 +0000 (UTC)
commit 90dfd83ea7dbf09ad0d665ca11280d37697d535c
Author: Trinh Anh Ngoc <atw1990 gmail com>
Date: Sun Nov 9 13:05:01 2014 +0700
properties-dialog: Use headerbar and improve spacing and borders
https://bugzilla.gnome.org/show_bug.cgi?id=739836
shell/ev-properties-dialog.c | 16 ++++------------
1 files changed, 4 insertions(+), 12 deletions(-)
---
diff --git a/shell/ev-properties-dialog.c b/shell/ev-properties-dialog.c
index 230ed4c..772ee1c 100644
--- a/shell/ev-properties-dialog.c
+++ b/shell/ev-properties-dialog.c
@@ -58,24 +58,15 @@ ev_properties_dialog_init (EvPropertiesDialog *properties)
GtkBox *content_area;
content_area = GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (properties)));
+ gtk_container_set_border_width (GTK_CONTAINER (content_area), 0);
gtk_window_set_title (GTK_WINDOW (properties), _("Properties"));
gtk_window_set_destroy_with_parent (GTK_WINDOW (properties), TRUE);
- gtk_container_set_border_width (GTK_CONTAINER (properties), 5);
- gtk_box_set_spacing (content_area, 2);
-
- gtk_dialog_add_button (GTK_DIALOG (properties), GTK_STOCK_CLOSE,
- GTK_RESPONSE_CANCEL);
- gtk_dialog_set_default_response (GTK_DIALOG (properties),
- GTK_RESPONSE_CANCEL);
properties->notebook = gtk_notebook_new ();
- gtk_container_set_border_width (GTK_CONTAINER (properties->notebook), 5);
+ gtk_notebook_set_show_border (GTK_NOTEBOOK (properties->notebook), FALSE);
gtk_box_pack_start (content_area, properties->notebook, TRUE, TRUE, 0);
gtk_widget_show (properties->notebook);
-
- g_signal_connect (properties, "response",
- G_CALLBACK (gtk_widget_destroy), NULL);
}
void
@@ -131,7 +122,8 @@ ev_properties_dialog_new (void)
{
EvPropertiesDialog *properties;
- properties = g_object_new (EV_TYPE_PROPERTIES_DIALOG, NULL);
+ properties = g_object_new (EV_TYPE_PROPERTIES_DIALOG,
+ "use-header-bar", TRUE, NULL);
return GTK_WIDGET (properties);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]