[vinagre] Get rid of gdk_drawable_get_size
- From: Jonh Wendell <jwendell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vinagre] Get rid of gdk_drawable_get_size
- Date: Fri, 8 Oct 2010 13:58:56 +0000 (UTC)
commit 89d395b607b73da72ba6347dbcbb94227b92245a
Author: Jonh Wendell <jwendell gnome org>
Date: Wed Oct 6 08:46:45 2010 -0300
Get rid of gdk_drawable_get_size
vinagre/vinagre-tab.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/vinagre/vinagre-tab.c b/vinagre/vinagre-tab.c
index 799673b..43a72cf 100644
--- a/vinagre/vinagre-tab.c
+++ b/vinagre/vinagre-tab.c
@@ -226,16 +226,14 @@ menu_position (GtkMenu *menu,
gboolean *push_in,
VinagreTab *tab)
{
- int width, height;
GdkWindow *window;
window = gtk_widget_get_window (tab->priv->toolbar);
gdk_window_get_origin (window, x, y);
- gdk_drawable_get_size (window, &width, &height);
*push_in = TRUE;
- *y += height;
+ *y += gdk_window_get_height (window);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]