[gnome-commander] Replacing obsoleted gdk_window_get_size() with gdk_drawable_get_size()



commit f1a986406509dc6bfe6a85ad5b6503c93cdcc015
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Mon Jul 25 00:24:37 2011 +0200

    Replacing obsoleted gdk_window_get_size() with gdk_drawable_get_size()

 src/gnome-cmd-clist.cc             |    4 ++--
 src/gnome-cmd-file-list.cc         |    4 ++--
 src/gnome-cmd-quicksearch-popup.cc |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/gnome-cmd-clist.cc b/src/gnome-cmd-clist.cc
index 9abfa72..08e7e89 100644
--- a/src/gnome-cmd-clist.cc
+++ b/src/gnome-cmd-clist.cc
@@ -366,12 +366,12 @@ static void draw_row (GtkCList *clist, GdkRectangle *area, gint row, GtkCListRow
         switch (clist_row->cell[i].type)
         {
             case GTK_CELL_PIXMAP:
-                gdk_window_get_size (GTK_CELL_PIXMAP (clist_row->cell[i])->pixmap, &pixmap_width, &height);
+                gdk_drawable_get_size (GTK_CELL_PIXMAP (clist_row->cell[i])->pixmap, &pixmap_width, &height);
                 width += pixmap_width;
                 break;
 
             case GTK_CELL_PIXTEXT:
-                gdk_window_get_size (GTK_CELL_PIXTEXT (clist_row->cell[i])->pixmap, &pixmap_width, &height);
+                gdk_drawable_get_size (GTK_CELL_PIXTEXT (clist_row->cell[i])->pixmap, &pixmap_width, &height);
                 width += pixmap_width + GTK_CELL_PIXTEXT (clist_row->cell[i])->spacing;
                 break;
 
diff --git a/src/gnome-cmd-file-list.cc b/src/gnome-cmd-file-list.cc
index 573aa02..fb7e540 100644
--- a/src/gnome-cmd-file-list.cc
+++ b/src/gnome-cmd-file-list.cc
@@ -2679,7 +2679,7 @@ static gboolean do_scroll (GnomeCmdFileList *fl)
     gint row_height;
     GtkCList *clist = *fl;
 
-    gdk_window_get_size (GTK_WIDGET (clist)->window, &w, &h);
+    gdk_drawable_get_size (GTK_WIDGET (clist)->window, &w, &h);
 
     offset = (0-clist->voffset);
     row_height = gnome_cmd_data.list_row_height;
@@ -2714,7 +2714,7 @@ static void autoscroll_if_appropriate (GnomeCmdFileList *fl, gint x, gint y)
     GtkCList *clist = *fl;
     gint w, h;
 
-    gdk_window_get_size (GTK_WIDGET (clist)->window, &w, &h);
+    gdk_drawable_get_size (GTK_WIDGET (clist)->window, &w, &h);
 
     gint smin = h/8;
     gint smax = h-smin;
diff --git a/src/gnome-cmd-quicksearch-popup.cc b/src/gnome-cmd-quicksearch-popup.cc
index d64786c..6ba3d59 100644
--- a/src/gnome-cmd-quicksearch-popup.cc
+++ b/src/gnome-cmd-quicksearch-popup.cc
@@ -221,7 +221,7 @@ inline void set_popup_position (GnomeCmdQuicksearchPopup *popup)
     gint x, y, w, h;
 
     gdk_window_get_origin (wid->window, &x, &y);
-    gdk_window_get_size (wid->window, &w, &h);
+    gdk_drawable_get_size (wid->window, &w, &h);
 
     y += h;
 



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