[gnome-photos/wip/abono/sidebar: 54/59] application: Rename variable
- From: Alessandro Bono <abono src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/abono/sidebar: 54/59] application: Rename variable
- Date: Tue, 6 Dec 2016 11:52:59 +0000 (UTC)
commit f3640be548a767ae4a94c9ecad2dac194bde66e3
Author: Alessandro Bono <abono gnome org>
Date: Fri Nov 11 12:58:42 2016 +0100
application: Rename variable
src/photos-application.c | 34 +++++++++++++++++-----------------
1 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/src/photos-application.c b/src/photos-application.c
index 6ea1815..2c34409 100644
--- a/src/photos-application.c
+++ b/src/photos-application.c
@@ -1616,8 +1616,8 @@ photos_application_startup (GApplication *application)
{
PhotosApplication *self = PHOTOS_APPLICATION (application);
GError *error;
- GSimpleAction *action;
GrlRegistry *registry;
+ GSimpleAction *simple_action;
GtkIconTheme *icon_theme;
GtkSettings *gtk_settings;
GVariant *state;
@@ -1690,10 +1690,10 @@ photos_application_startup (GApplication *application)
G_CALLBACK (photos_application_selection_changed),
self);
- action = g_simple_action_new ("about", NULL);
- g_signal_connect_swapped (action, "activate", G_CALLBACK (photos_application_about), self);
- g_action_map_add_action (G_ACTION_MAP (self), G_ACTION (action));
- g_object_unref (action);
+ simple_action = g_simple_action_new ("about", NULL);
+ g_signal_connect_swapped (simple_action, "activate", G_CALLBACK (photos_application_about), self);
+ g_action_map_add_action (G_ACTION_MAP (self), G_ACTION (simple_action));
+ g_object_unref (simple_action);
parameter_type = g_variant_type_new ("a{sd}");
self->brightness_contrast_action = g_simple_action_new ("brightness-contrast-current", parameter_type);
@@ -1771,15 +1771,15 @@ photos_application_startup (GApplication *application)
g_signal_connect_swapped (self->properties_action, "activate", G_CALLBACK (photos_application_properties),
self);
g_action_map_add_action (G_ACTION_MAP (self), G_ACTION (self->properties_action));
- action = g_simple_action_new ("quit", NULL);
- g_signal_connect_swapped (action, "activate", G_CALLBACK (photos_application_quit), self);
- g_action_map_add_action (G_ACTION_MAP (self), G_ACTION (action));
- g_object_unref (action);
+ simple_action = g_simple_action_new ("quit", NULL);
+ g_signal_connect_swapped (simple_action, "activate", G_CALLBACK (photos_application_quit), self);
+ g_action_map_add_action (G_ACTION_MAP (self), G_ACTION (simple_action));
+ g_object_unref (simple_action);
- action = g_simple_action_new ("remote-display-current", NULL);
- g_signal_connect_swapped (action, "activate", G_CALLBACK (photos_application_remote_display_current),
self);
- g_action_map_add_action (G_ACTION_MAP (self), G_ACTION (action));
- g_object_unref (action);
+ simple_action = g_simple_action_new ("remote-display-current", NULL);
+ g_signal_connect_swapped (simple_action, "activate", G_CALLBACK
(photos_application_remote_display_current), self);
+ g_action_map_add_action (G_ACTION_MAP (self), G_ACTION (simple_action));
+ g_object_unref (simple_action);
self->saturation_action = g_simple_action_new ("saturation-current", G_VARIANT_TYPE_DOUBLE);
g_action_map_add_action (G_ACTION_MAP (self), G_ACTION (self->saturation_action));
@@ -1839,10 +1839,10 @@ photos_application_startup (GApplication *application)
G_CALLBACK (photos_application_window_mode_changed),
self);
- action = g_simple_action_new ("help", NULL);
- g_signal_connect_swapped (action, "activate", G_CALLBACK (photos_application_help), self);
- g_action_map_add_action (G_ACTION_MAP (self), G_ACTION (action));
- g_object_unref (action);
+ simple_action = g_simple_action_new ("help", NULL);
+ g_signal_connect_swapped (simple_action, "activate", G_CALLBACK (photos_application_help), self);
+ g_action_map_add_action (G_ACTION_MAP (self), G_ACTION (simple_action));
+ g_object_unref (simple_action);
gtk_application_set_accels_for_action (GTK_APPLICATION (self), "app.quit", quit_accels);
gtk_application_set_accels_for_action (GTK_APPLICATION (self), "app.delete", delete_accels);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]