[gnome-photos/wip/abono/sidebar: 624/635] application: Rename variable
- From: Alessandro Bono <abono src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/abono/sidebar: 624/635] application: Rename variable
- Date: Thu, 2 Nov 2017 15:45:45 +0000 (UTC)
commit 8fdb442709a886c59dfafe6aa72d1bee0137cc55
Author: Alessandro Bono <abono gnome org>
Date: Fri Nov 11 12:35:58 2016 +0100
application: Rename variable
src/photos-application.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 26c8f66..1d2d16c 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -1582,13 +1582,13 @@ photos_application_stop_miners (PhotosApplication *self)
static void
-photos_application_theme_changed (GtkSettings *settings)
+photos_application_theme_changed (GtkSettings *gtk_settings)
{
static GtkCssProvider *provider;
GdkScreen *screen;
gchar *theme;
- g_object_get (settings, "gtk-theme-name", &theme, NULL);
+ g_object_get (gtk_settings, "gtk-theme-name", &theme, NULL);
screen = gdk_screen_get_default ();
if (g_strcmp0 (theme, "Adwaita") == 0)
@@ -1802,7 +1802,7 @@ photos_application_startup (GApplication *application)
GSimpleAction *action;
GrlRegistry *registry;
GtkIconTheme *icon_theme;
- GtkSettings *settings;
+ GtkSettings *gtk_settings;
GVariant *state;
GVariantType *parameter_type;
const gchar *delete_accels[3] = {"Delete", "KP_Delete", NULL};
@@ -1860,10 +1860,10 @@ photos_application_startup (GApplication *application)
icon_theme = gtk_icon_theme_get_default ();
gtk_icon_theme_add_resource_path (icon_theme, "/org/gnome/Photos/icons");
- settings = gtk_settings_get_default ();
- g_object_set (settings, "gtk-application-prefer-dark-theme", TRUE, NULL);
- g_signal_connect (settings, "notify::gtk-theme-name", G_CALLBACK (photos_application_theme_changed), NULL);
- photos_application_theme_changed (settings);
+ gtk_settings = gtk_settings_get_default ();
+ g_object_set (gtk_settings, "gtk-application-prefer-dark-theme", TRUE, NULL);
+ g_signal_connect (gtk_settings, "notify::gtk-theme-name", G_CALLBACK (photos_application_theme_changed),
NULL);
+ photos_application_theme_changed (gtk_settings);
self->shr_pnt_mngr = photos_share_point_manager_dup_singleton ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]