[gnome-photos/wip/abono/sidebar: 2/14] Remove PhotosSettings
- From: Alessandro Bono <abono src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/abono/sidebar: 2/14] Remove PhotosSettings
- Date: Sat, 12 Nov 2016 11:32:45 +0000 (UTC)
commit d17a5989cbf16202e7934ad1dad7b8b9a4dd12df
Author: Alessandro Bono <abono gnome org>
Date: Fri Nov 11 12:08:13 2016 +0100
Remove PhotosSettings
src/Makefile.am | 2 -
src/photos-main-window.c | 3 +-
src/photos-settings.c | 70 ------------------------------------------
src/photos-settings.h | 75 ----------------------------------------------
4 files changed, 1 insertions(+), 149 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 55fe257..b1d428f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -200,8 +200,6 @@ gnome_photos_SOURCES = \
photos-selection-toolbar.h \
photos-set-collection-job.c \
photos-set-collection-job.h \
- photos-settings.c \
- photos-settings.h \
photos-share-dialog.c \
photos-share-dialog.h \
photos-share-notification.c \
diff --git a/src/photos-main-window.c b/src/photos-main-window.c
index a0981ad..6d84026 100644
--- a/src/photos-main-window.c
+++ b/src/photos-main-window.c
@@ -36,7 +36,6 @@
#include "photos-preview-view.h"
#include "photos-search-context.h"
#include "photos-selection-controller.h"
-#include "photos-settings.h"
struct _PhotosMainWindow
@@ -421,7 +420,7 @@ photos_main_window_init (PhotosMainWindow *self)
app = g_application_get_default ();
state = photos_search_context_get_state (PHOTOS_SEARCH_CONTEXT (app));
- self->settings = photos_settings_new ();
+ self->settings = g_settings_new ("org.gnome.photos");
variant = g_settings_get_value (self->settings, "window-size");
size = g_variant_get_fixed_array (variant, &n_elements, sizeof (gint32));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]