Merge lp:~fabiozaramella/pantheon-photos/fix-1313440 into lp:~pantheon-photos/pantheon-photos/trunk

Proposed by Fabio Zaramella
Status: Merged
Merged at revision: 2572
Proposed branch: lp:~fabiozaramella/pantheon-photos/fix-1313440
Merge into: lp:~pantheon-photos/pantheon-photos/trunk
Diff against target: 59 lines (+14/-6)
1 file modified
src/Dialogs.vala (+14/-6)
To merge this branch: bzr merge lp:~fabiozaramella/pantheon-photos/fix-1313440
Reviewer Review Type Date Requested Status
Photos Devs Pending
Review via email: mp+230155@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Dialogs.vala'
2--- src/Dialogs.vala 2014-06-23 18:40:45 +0000
3+++ src/Dialogs.vala 2014-08-08 17:33:00 +0000
4@@ -2193,6 +2193,7 @@
5 private static PreferencesDialog preferences_dialog;
6
7 private Gtk.Dialog dialog;
8+ private Gtk.HeaderBar header;
9 private Gtk.Builder builder;
10 private Gtk.Adjustment bg_color_adjustment;
11 private Gtk.Scale bg_color_slider;
12@@ -2217,9 +2218,7 @@
13 builder = AppWindow.create_builder();
14
15 // Preferences dialog window settings
16- dialog = new Gtk.Dialog();
17- dialog.border_width = 6;
18- dialog.title = _("Preferences");
19+ dialog = new Gtk.Dialog ();
20 dialog.width_request = 450;
21 dialog.type_hint = Gdk.WindowTypeHint.DIALOG;
22 dialog.resizable = false;
23@@ -2227,6 +2226,13 @@
24 dialog.map_event.connect(map_event_handler);
25 dialog.set_parent_window(AppWindow.get_instance().get_parent_window());
26
27+ header = new Gtk.HeaderBar ();
28+ header.show_close_button = false;
29+ header.title = _("Preferences");
30+ header.get_style_context ().remove_class ("header-bar");
31+
32+ dialog.set_titlebar (header);
33+
34 // Create our stack container and load in each preference container from shotwell.glade
35 Gtk.Stack container = new Gtk.Stack ();
36 container.expand = true;
37@@ -2238,11 +2244,13 @@
38 switcher.stack = container;
39 switcher.expand = true;
40 switcher.halign = Gtk.Align.CENTER;
41- switcher.margin_top = 6;
42- switcher.margin_bottom = 12;
43+ switcher.margin_bottom = 6;
44
45 // Add the switcher, stack container and button container to the window
46 Gtk.Box content = dialog.get_content_area () as Gtk.Box;
47+ content.margin_bottom = 6;
48+ content.margin_start = 6;
49+ content.margin_end = 6;
50 content.add (switcher);
51 content.add (container);
52
53@@ -2701,4 +2709,4 @@
54 progress.close();
55
56 AppWindow.get_instance().set_normal_cursor();
57-}
58+}
59\ No newline at end of file

Subscribers

People subscribed via source and target branches