Merge lp:~fabiozaramella/pantheon-photos/use-deletable into lp:~pantheon-photos/pantheon-photos/trunk

Proposed by Fabio Zaramella
Status: Merged
Approved by: Danielle Foré
Approved revision: 2722
Merged at revision: 2722
Proposed branch: lp:~fabiozaramella/pantheon-photos/use-deletable
Merge into: lp:~pantheon-photos/pantheon-photos/trunk
Diff against target: 44 lines (+2/-10)
1 file modified
src/Dialogs.vala (+2/-10)
To merge this branch: bzr merge lp:~fabiozaramella/pantheon-photos/use-deletable
Reviewer Review Type Date Requested Status
Photos Devs Pending
Review via email: mp+246849@code.launchpad.net

Commit message

Revert headerbar, set deletable false in dialog

Description of the change

In the same way as noise, scratch etc..

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
=== modified file 'src/Dialogs.vala'
--- src/Dialogs.vala 2014-11-08 13:37:25 +0000
+++ src/Dialogs.vala 2015-01-18 18:56:57 +0000
@@ -2070,7 +2070,6 @@
2070 private static PreferencesDialog preferences_dialog;2070 private static PreferencesDialog preferences_dialog;
20712071
2072 private Gtk.Dialog dialog;2072 private Gtk.Dialog dialog;
2073 private Gtk.HeaderBar header;
2074 private Gtk.Builder builder;2073 private Gtk.Builder builder;
2075 private Gtk.FileChooserButton library_dir_button;2074 private Gtk.FileChooserButton library_dir_button;
2076 private Gtk.ComboBoxText dir_pattern_combo;2075 private Gtk.ComboBoxText dir_pattern_combo;
@@ -2093,16 +2092,10 @@
2093 dialog.width_request = 450;2092 dialog.width_request = 450;
2094 dialog.type_hint = Gdk.WindowTypeHint.DIALOG;2093 dialog.type_hint = Gdk.WindowTypeHint.DIALOG;
2095 dialog.resizable = false;2094 dialog.resizable = false;
2095 dialog.deletable = false;
2096 dialog.delete_event.connect (on_delete);2096 dialog.delete_event.connect (on_delete);
2097 dialog.map_event.connect (map_event_handler);2097 dialog.map_event.connect (map_event_handler);
2098 dialog.set_parent_window (AppWindow.get_instance ().get_parent_window ());2098 dialog.set_parent_window (AppWindow.get_instance ().get_parent_window ());
2099
2100 header = new Gtk.HeaderBar ();
2101 header.show_close_button = false;
2102 header.title = _("Preferences");
2103 header.get_style_context ().remove_class ("header-bar");
2104
2105 dialog.set_titlebar (header);
21062099
2107 // Create our stack container and load in each preference container from shotwell.glade2100 // Create our stack container and load in each preference container from shotwell.glade
2108 Gtk.Stack container = new Gtk.Stack ();2101 Gtk.Stack container = new Gtk.Stack ();
@@ -2330,7 +2323,6 @@
2330 }2323 }
23312324
2332 private void set_allow_closing (bool allow) {2325 private void set_allow_closing (bool allow) {
2333 dialog.set_deletable (allow);
2334 close_button.set_sensitive (allow);2326 close_button.set_sensitive (allow);
2335 allow_closing = allow;2327 allow_closing = allow;
2336 }2328 }
@@ -2448,4 +2440,4 @@
2448 progress.close ();2440 progress.close ();
24492441
2450 AppWindow.get_instance ().set_normal_cursor ();2442 AppWindow.get_instance ().set_normal_cursor ();
2451}
2452\ No newline at end of file2443\ No newline at end of file
2444}

Subscribers

People subscribed via source and target branches