commit 6eda9335da66a88dac22878f668196aa4163fda2
Author: phantomjinx <p.g.richard...@phantomjinx.co.uk>
Date:   Sat May 7 01:35:22 2011 +0100

    Migrate gdk_drawable_get_size
    
    * For gtk libraries 2.24 and later use gdk_drawable_get_width and height

 plugins/cover_display/display_coverart.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/cover_display/display_coverart.c 
b/plugins/cover_display/display_coverart.c
index ea9a05a..2c859a3 100644
--- a/plugins/cover_display/display_coverart.c
+++ b/plugins/cover_display/display_coverart.c
@@ -623,7 +623,13 @@ static void set_cover_dimensions(Cover_Item *cover, int 
cover_index, gdouble img
     gint PANEL_WIDTH = 0, PANEL_HEIGHT = 0;
     gint CONTBOX_WIDTH = 0, CONTBOX_HEIGHT = 0;
 
+#if GTK_CHECK_VERSION(2,24,0)
+    PANEL_WIDTH = 
gdk_window_get_width(gtk_widget_get_window(cdwidget->canvasbox));
+    PANEL_HEIGHT = 
gdk_window_get_height(gtk_widget_get_window(cdwidget->canvasbox));
+#else
     
gdk_drawable_get_size(GDK_DRAWABLE(gtk_widget_get_window(cdwidget->canvasbox)), 
&PANEL_WIDTH, &PANEL_HEIGHT);
+#endif
+
     gtk_widget_get_size_request(cdwidget->controlbox, &CONTBOX_WIDTH, 
&CONTBOX_HEIGHT);
 
     // If panel width not been rendered default to minimum

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
gtkpod-cvs2 mailing list
gtkpod-cvs2@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to