[gtk/wip/matthiasc/popup2: 73/90] label: Fix compiler warnings



commit 457a22c47f9fb470aa337ada5f71714d0e725cee
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Mar 23 00:33:49 2019 -0400

    label: Fix compiler warnings

 gtk/gtklabel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 4ad8ff1a69..e72b7adde9 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -5874,7 +5874,7 @@ gtk_label_move_cursor (GtkLabel       *label,
                       GtkRoot *root = gtk_widget_get_root (GTK_WIDGET (label));
 
                       if (root)
-                        gtk_widget_child_focus (root, count > 0 ? GTK_DIR_RIGHT : GTK_DIR_LEFT);
+                        gtk_widget_child_focus (GTK_WIDGET (root), count > 0 ? GTK_DIR_RIGHT : GTK_DIR_LEFT);
                     }
                 }
               else
@@ -6161,7 +6161,7 @@ gtk_label_activate_link (GtkLabel    *label,
   GError *error = NULL;
 
   if (!GTK_IS_WINDOW (toplevel))
-    return;
+    return FALSE;
 
   if (!gtk_show_uri_on_window (GTK_WINDOW (toplevel), uri, timestamp, &error))
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]