[gnome-photos] tool-crop: Rename variable
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] tool-crop: Rename variable
- Date: Tue, 27 Jun 2017 15:48:12 +0000 (UTC)
commit 6aeb8c609ad714fe75b95c7e8a60c51915847b15
Author: Alessandro Bono <abono gnome org>
Date: Wed Apr 19 11:03:22 2017 +0200
tool-crop: Rename variable
A subsequent commit will add another GtkRevealer for the orientation
buttons whose visibility depend on whether the selected aspect ratio's
orientation can be changed or not.
https://bugzilla.gnome.org/show_bug.cgi?id=781134
src/photos-tool-crop.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/photos-tool-crop.c b/src/photos-tool-crop.c
index deb3864..36fbaf7 100644
--- a/src/photos-tool-crop.c
+++ b/src/photos-tool-crop.c
@@ -67,7 +67,7 @@ struct _PhotosToolCrop
GtkWidget *list_box;
GtkWidget *lock_button;
GtkWidget *reset_button;
- GtkWidget *revealer;
+ GtkWidget *ratio_revealer;
GtkWidget *view;
PhotosToolCropLocation location;
cairo_surface_t *surface;
@@ -1192,14 +1192,14 @@ photos_tool_crop_init (PhotosToolCrop *self)
gtk_container_add (GTK_CONTAINER (self->box), self->lock_button);
g_signal_connect_swapped (self->lock_button, "toggled", G_CALLBACK (photos_tool_crop_active_changed),
self);
- self->revealer = gtk_revealer_new ();
- gtk_container_add (GTK_CONTAINER (self->box), self->revealer);
- gtk_revealer_set_transition_type (GTK_REVEALER (self->revealer), GTK_REVEALER_TRANSITION_TYPE_SLIDE_DOWN);
- g_object_bind_property (self->lock_button, "active", self->revealer, "reveal-child", G_BINDING_DEFAULT);
+ self->ratio_revealer = gtk_revealer_new ();
+ gtk_container_add (GTK_CONTAINER (self->box), self->ratio_revealer);
+ gtk_revealer_set_transition_type (GTK_REVEALER (self->ratio_revealer),
GTK_REVEALER_TRANSITION_TYPE_SLIDE_DOWN);
+ g_object_bind_property (self->lock_button, "active", self->ratio_revealer, "reveal-child",
G_BINDING_DEFAULT);
self->list_box = gtk_list_box_new ();
gtk_list_box_set_selection_mode (GTK_LIST_BOX (self->list_box), GTK_SELECTION_NONE);
- gtk_container_add (GTK_CONTAINER (self->revealer), self->list_box);
+ gtk_container_add (GTK_CONTAINER (self->ratio_revealer), self->list_box);
g_signal_connect_swapped (self->list_box,
"row-activated",
G_CALLBACK (photos_tool_crop_list_box_row_activated),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]