[dia/dia-next: 43/59] Fix a couple warnings



commit aae4832d09241fd81e00f7f7bd951c63fb08cf82
Author: Zander Brown <zbrown gnome org>
Date:   Wed Jan 2 00:20:45 2019 +0000

    Fix a couple warnings

 app/layer_dialog.c | 6 ++++--
 app/ruler.c        | 2 +-
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/app/layer_dialog.c b/app/layer_dialog.c
index 9d0da605..981e7f52 100644
--- a/app/layer_dialog.c
+++ b/app/layer_dialog.c
@@ -929,10 +929,12 @@ dia_layer_widget_init(DiaLayerWidget *lw)
 
   gtk_container_add(GTK_CONTAINER(lw), hbox);
 
-  g_signal_connect (G_OBJECT (lw), "select",
+
+  /* TODO: Fix layer switching */
+  /*g_signal_connect (G_OBJECT (lw), "select"
                    G_CALLBACK (dia_layer_select_callback), NULL);
   g_signal_connect (G_OBJECT (lw), "deselect",
-                   G_CALLBACK (dia_layer_deselect_callback), NULL);
+                   G_CALLBACK (dia_layer_deselect_callback), NULL);*/
 }
 
 GType
diff --git a/app/ruler.c b/app/ruler.c
index 21cc575d..1a289a27 100644
--- a/app/ruler.c
+++ b/app/ruler.c
@@ -67,7 +67,7 @@ dia_ruler_draw (GtkWidget *widget,
   GdkRGBA fg;
   real pos;
 
-  gtk_style_context_get_color (style_context, gtk_widget_get_state (widget), &fg);
+  gtk_style_context_get_color (style_context, gtk_widget_get_state_flags (widget), &fg);
 
   layout = gtk_widget_create_pango_layout (widget, "012456789");
 


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