aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-24 20:03:43 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-28 11:21:45 (GMT)
commitdd4d2e754970c48b8a379fe97263d0e598710b26 (patch)
treeb273e2b3aca6c446e57e1c3b28184f37b8389405
parent620cd17e2c922773110196c63b332a58c06e88ae (diff)
Replace GTK_WIDGET_VISIBLE() with gtk_widget_get_visible()
Replace another Gtk 2 macro that was replaced on Gtk 3. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--src/callbacks.c2
-rw-r--r--src/camorama-window.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/callbacks.c b/src/callbacks.c
index 60c2eff..60d6971 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -454,7 +454,7 @@ void on_change_size_activate (GtkWidget * widget, cam * cam)
void on_show_adjustments_activate (GtkToggleButton * button, cam * cam)
{
- if (GTK_WIDGET_VISIBLE (GTK_WIDGET(gtk_builder_get_object(cam->xml, "adjustments_table")))) {
+ if (gtk_widget_get_visible(GTK_WIDGET(gtk_builder_get_object(cam->xml, "adjustments_table")))) {
gtk_widget_hide (GTK_WIDGET(gtk_builder_get_object(cam->xml, "adjustments_table")));
gtk_window_resize (GTK_WINDOW
(GTK_WIDGET(gtk_builder_get_object
diff --git a/src/camorama-window.c b/src/camorama-window.c
index 3c5e11e..128bfc7 100644
--- a/src/camorama-window.c
+++ b/src/camorama-window.c
@@ -164,7 +164,7 @@ static void
tray_clicked_callback (GtkStatusIcon* status, guint button, guint activate_time, cam * cam){
// FIXME: change to switch
if (button == 1) {
- if (GTK_WIDGET_VISIBLE
+ if (gtk_widget_get_visible
(GTK_WIDGET(gtk_builder_get_object(cam->xml, "main_window")))) {
cam->hidden = TRUE;
gtk_idle_remove (cam->idle_id);

Privacy Policy