Merge lp:~victored/pantheon-photos/fix-warnings into lp:~pantheon-photos/pantheon-photos/trunk

Proposed by Victor Martinez
Status: Merged
Approved by: Danielle Foré
Approved revision: 2827
Merged at revision: 2873
Proposed branch: lp:~victored/pantheon-photos/fix-warnings
Merge into: lp:~pantheon-photos/pantheon-photos/trunk
Diff against target: 84 lines (+12/-21)
4 files modified
src/AppWindow.vala (+0/-5)
src/MediaPage.vala (+0/-3)
src/Resources.vala (+0/-5)
src/library/LibraryWindow.vala (+12/-8)
To merge this branch: bzr merge lp:~victored/pantheon-photos/fix-warnings
Reviewer Review Type Date Requested Status
Photos Devs Pending
Review via email: mp+271763@code.launchpad.net

Commit message

Fix several application warnings caused by programming errors

To post a comment you must log in.
2827. By Victor Martinez

fix more warnings and rework code logic a bit

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/AppWindow.vala'
2--- src/AppWindow.vala 2015-09-05 18:50:53 +0000
3+++ src/AppWindow.vala 2015-09-21 05:25:37 +0000
4@@ -450,11 +450,6 @@
5
6 set_default_title ();
7
8- GLib.List<Gdk.Pixbuf> pixbuf_list = new GLib.List<Gdk.Pixbuf> ();
9- foreach (string resource in Resources.APP_ICONS)
10- pixbuf_list.append (Resources.get_icon (resource, 0));
11- set_default_icon_list (pixbuf_list.copy ());
12-
13 // restore previous size and maximization state
14 if (this is LibraryWindow) {
15 Config.Facade.get_instance ().get_library_window_state (out maximized, out dimensions);
16
17=== modified file 'src/MediaPage.vala'
18--- src/MediaPage.vala 2014-08-28 14:41:02 +0000
19+++ src/MediaPage.vala 2015-09-21 05:25:37 +0000
20@@ -462,9 +462,6 @@
21
22 update_development_menu_item_sensitivity ();
23
24- set_action_sensitive ("PlayVideo", selected_count == 1
25- && get_view ().get_selected_source_at (0) is Video);
26-
27 update_flag_action (selected_count);
28
29 base.update_actions (selected_count, count);
30
31=== modified file 'src/Resources.vala'
32--- src/Resources.vala 2015-08-09 21:54:34 +0000
33+++ src/Resources.vala 2015-09-21 05:25:37 +0000
34@@ -90,11 +90,6 @@
35 public const string MERGE = "object-merge";
36
37 public const string ICON_APP = "multimedia-photo-manager";
38-public const string ICON_APP16 = "multimedia-photo-manager";
39-public const string ICON_APP24 = "multimedia-photo-manager";
40-
41-public const string APP_ICONS[] = { ICON_APP, ICON_APP16, ICON_APP24 };
42-
43 public const string ICON_ABOUT_LOGO = "multimedia-photo-manager";
44 public const string ICON_GENERIC_PLUGIN = "extension";
45 public const string ICON_SLIDESHOW_EXTENSION_POINT = "media-playback-start";
46
47=== modified file 'src/library/LibraryWindow.vala'
48--- src/library/LibraryWindow.vala 2015-09-05 18:50:53 +0000
49+++ src/library/LibraryWindow.vala 2015-09-21 05:25:37 +0000
50@@ -324,7 +324,7 @@
51 preferences.label = Resources.PREFERENCES_MENU;
52 actions += preferences;
53
54- Gtk.ActionEntry empty = { "CommonEmptyTrash", null, TRANSLATABLE, "Delete All", TRANSLATABLE,
55+ Gtk.ActionEntry empty = { "CommonEmptyTrash", null, TRANSLATABLE, null, TRANSLATABLE,
56 on_empty_trash
57 };
58 empty.label = _ ("_Empty Trash");
59@@ -1400,15 +1400,19 @@
60 }
61 }
62
63- right_frame.remove (welcome_page);
64- if (show) {
65- right_frame.remove (right_vbox);
66- right_frame.add (welcome_page);
67- } else {
68- right_frame.add (right_vbox);
69+ if (right_frame != null) {
70+ if (right_frame.get_child () != null)
71+ right_frame.remove (right_frame.get_child ());
72+
73+ if (show) {
74+ right_frame.add (welcome_page);
75+ } else {
76+ right_frame.add (right_vbox);
77+ }
78+
79+ right_frame.show_all ();
80 }
81
82- right_frame.show_all ();
83 set_metadata_sidebar_visible (is_metadata_sidebar_visible ());
84 }
85

Subscribers

People subscribed via source and target branches