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
=== modified file 'src/AppWindow.vala'
--- src/AppWindow.vala 2015-09-05 18:50:53 +0000
+++ src/AppWindow.vala 2015-09-21 05:25:37 +0000
@@ -450,11 +450,6 @@
450450
451 set_default_title ();451 set_default_title ();
452452
453 GLib.List<Gdk.Pixbuf> pixbuf_list = new GLib.List<Gdk.Pixbuf> ();
454 foreach (string resource in Resources.APP_ICONS)
455 pixbuf_list.append (Resources.get_icon (resource, 0));
456 set_default_icon_list (pixbuf_list.copy ());
457
458 // restore previous size and maximization state453 // restore previous size and maximization state
459 if (this is LibraryWindow) {454 if (this is LibraryWindow) {
460 Config.Facade.get_instance ().get_library_window_state (out maximized, out dimensions);455 Config.Facade.get_instance ().get_library_window_state (out maximized, out dimensions);
461456
=== modified file 'src/MediaPage.vala'
--- src/MediaPage.vala 2014-08-28 14:41:02 +0000
+++ src/MediaPage.vala 2015-09-21 05:25:37 +0000
@@ -462,9 +462,6 @@
462462
463 update_development_menu_item_sensitivity ();463 update_development_menu_item_sensitivity ();
464464
465 set_action_sensitive ("PlayVideo", selected_count == 1
466 && get_view ().get_selected_source_at (0) is Video);
467
468 update_flag_action (selected_count);465 update_flag_action (selected_count);
469466
470 base.update_actions (selected_count, count);467 base.update_actions (selected_count, count);
471468
=== modified file 'src/Resources.vala'
--- src/Resources.vala 2015-08-09 21:54:34 +0000
+++ src/Resources.vala 2015-09-21 05:25:37 +0000
@@ -90,11 +90,6 @@
90public const string MERGE = "object-merge";90public const string MERGE = "object-merge";
9191
92public const string ICON_APP = "multimedia-photo-manager";92public const string ICON_APP = "multimedia-photo-manager";
93public const string ICON_APP16 = "multimedia-photo-manager";
94public const string ICON_APP24 = "multimedia-photo-manager";
95
96public const string APP_ICONS[] = { ICON_APP, ICON_APP16, ICON_APP24 };
97
98public const string ICON_ABOUT_LOGO = "multimedia-photo-manager";93public const string ICON_ABOUT_LOGO = "multimedia-photo-manager";
99public const string ICON_GENERIC_PLUGIN = "extension";94public const string ICON_GENERIC_PLUGIN = "extension";
100public const string ICON_SLIDESHOW_EXTENSION_POINT = "media-playback-start";95public const string ICON_SLIDESHOW_EXTENSION_POINT = "media-playback-start";
10196
=== modified file 'src/library/LibraryWindow.vala'
--- src/library/LibraryWindow.vala 2015-09-05 18:50:53 +0000
+++ src/library/LibraryWindow.vala 2015-09-21 05:25:37 +0000
@@ -324,7 +324,7 @@
324 preferences.label = Resources.PREFERENCES_MENU;324 preferences.label = Resources.PREFERENCES_MENU;
325 actions += preferences;325 actions += preferences;
326326
327 Gtk.ActionEntry empty = { "CommonEmptyTrash", null, TRANSLATABLE, "Delete All", TRANSLATABLE,327 Gtk.ActionEntry empty = { "CommonEmptyTrash", null, TRANSLATABLE, null, TRANSLATABLE,
328 on_empty_trash328 on_empty_trash
329 };329 };
330 empty.label = _ ("_Empty Trash");330 empty.label = _ ("_Empty Trash");
@@ -1400,15 +1400,19 @@
1400 }1400 }
1401 }1401 }
14021402
1403 right_frame.remove (welcome_page);1403 if (right_frame != null) {
1404 if (show) {1404 if (right_frame.get_child () != null)
1405 right_frame.remove (right_vbox);1405 right_frame.remove (right_frame.get_child ());
1406 right_frame.add (welcome_page);1406
1407 } else {1407 if (show) {
1408 right_frame.add (right_vbox);1408 right_frame.add (welcome_page);
1409 } else {
1410 right_frame.add (right_vbox);
1411 }
1412
1413 right_frame.show_all ();
1409 }1414 }
14101415
1411 right_frame.show_all ();
1412 set_metadata_sidebar_visible (is_metadata_sidebar_visible ());1416 set_metadata_sidebar_visible (is_metadata_sidebar_visible ());
1413 }1417 }
14141418

Subscribers

People subscribed via source and target branches