[latexila] BuildToolsPreferences: use headerbar
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] BuildToolsPreferences: use headerbar
- Date: Mon, 6 Apr 2015 15:12:25 +0000 (UTC)
commit b9cb810a8f08f5740a874a1dde82b46c1f49420c
Author: Sébastien Wilmet <swilmet gnome org>
Date: Mon Apr 6 16:53:45 2015 +0200
BuildToolsPreferences: use headerbar
To be consistent with the BuildToolDialog that uses also an headerbar.
src/build_tools_preferences.vala | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/build_tools_preferences.vala b/src/build_tools_preferences.vala
index 16bb9ee..2f2e87f 100644
--- a/src/build_tools_preferences.vala
+++ b/src/build_tools_preferences.vala
@@ -50,9 +50,11 @@ public class BuildToolsPreferences : GLib.Object
init_views ();
- _dialog = new Dialog.with_buttons (_("Build Tools"), main_window,
- DialogFlags.DESTROY_WITH_PARENT,
- _("_Close"), ResponseType.ACCEPT);
+ _dialog = GLib Object new (typeof (Gtk.Dialog), "use-header-bar", true, null)
+ as Gtk.Dialog;
+ _dialog.set_transient_for (main_window);
+ _dialog.destroy_with_parent = true;
+ _dialog.title = _("Build Tools");
Grid hgrid = new Grid ();
hgrid.set_orientation (Orientation.HORIZONTAL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]