[muine] replace some deprecated gtk functions



commit 86e885f1f17db2ec3caa31b0ff7955dfe2b4e543
Author: daniel g. siegel <dgsiegel gnome org>
Date:   Tue Apr 27 20:22:57 2010 +0200

    replace some deprecated gtk functions
    
    use gtk_widget_has_focus instead of GTK_WIDGET_HAS_FOCUS and
    gtk_widget_get_state instead of GTK_WIDGET_STATE

 libmuine/rb-cell-renderer-pixbuf.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libmuine/rb-cell-renderer-pixbuf.c b/libmuine/rb-cell-renderer-pixbuf.c
index 42cff41..abf6958 100644
--- a/libmuine/rb-cell-renderer-pixbuf.c
+++ b/libmuine/rb-cell-renderer-pixbuf.c
@@ -295,14 +295,14 @@ rb_cell_renderer_pixbuf_render (GtkCellRenderer    *cell,
 
   if ((flags & GTK_CELL_RENDERER_SELECTED) == GTK_CELL_RENDERER_SELECTED)
     {
-      if (GTK_WIDGET_HAS_FOCUS (widget))
+      if (gtk_widget_has_focus (widget))
         state = GTK_STATE_SELECTED;
       else
         state = GTK_STATE_ACTIVE;
     }
   else
     {
-      if (GTK_WIDGET_STATE (widget) == GTK_STATE_INSENSITIVE)
+      if (gtk_widget_get_state (widget) == GTK_STATE_INSENSITIVE)
         state = GTK_STATE_INSENSITIVE;
       else
         state = GTK_STATE_NORMAL;



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