[bijiben] import dialog: use header bar
- From: Pierre-Yves Luyten <pyluyten src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bijiben] import dialog: use header bar
- Date: Tue, 20 May 2014 20:39:57 +0000 (UTC)
commit 725451b3e1c76b735b648e12609a4b8c9907de1f
Author: Pierre-Yves Luyten <py luyten fr>
Date: Tue May 20 22:39:49 2014 +0200
import dialog: use header bar
src/bjb-import-dialog.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/bjb-import-dialog.c b/src/bjb-import-dialog.c
index cabe0f7..1892e59 100644
--- a/src/bjb-import-dialog.c
+++ b/src/bjb-import-dialog.c
@@ -404,7 +404,9 @@ bjb_import_dialog_constructed (GObject *obj)
gtk_window_set_title (win, _("Import Notes"));
gtk_window_set_modal (win, TRUE);
- gtk_dialog_add_button (dialog, _("_Cancel"), GTK_RESPONSE_CANCEL);
+ gtk_header_bar_set_show_close_button (GTK_HEADER_BAR
+ (gtk_dialog_get_header_bar (GTK_DIALOG (self))), TRUE);
+
priv->go_go_go = gtk_dialog_add_button (dialog, _("Import"), GTK_RESPONSE_OK);
gtk_widget_set_sensitive (priv->go_go_go, FALSE);
@@ -546,8 +548,8 @@ GtkDialog *
bjb_import_dialog_new (GtkApplication *bijiben)
{
return g_object_new (BJB_TYPE_IMPORT_DIALOG,
- "application",
- bijiben,
+ "application", bijiben,
+ "use-header-bar", TRUE,
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]