summaryrefslogtreecommitdiff
path: root/pidgin/gtkdocklet-x11.c
diff options
context:
space:
mode:
authorCasey Harkins <charkins@pidgin.im>2007-10-28 17:08:49 +0000
committerCasey Harkins <charkins@pidgin.im>2007-10-28 17:08:49 +0000
commit1328a466a5cffaa17b071e22b958936201c8e0ef (patch)
treeb0dca65e9ad3572b498ba1579b235754857c82f6 /pidgin/gtkdocklet-x11.c
parent5e045faf03c4faa59205dc50bbc2ba41251c3f5b (diff)
parent3a4bdde0a65b178daceb0f5a3fd8e6a892ce291e (diff)
downloadpidgin-charkins.dockletgeom.tar.gz
merge of '682e3ca82041867fb06cbedae8f88d08e0fed374'charkins.dockletgeom
and 'bca687215ee821716b99784e10fa252ec3abd76a'
Diffstat (limited to 'pidgin/gtkdocklet-x11.c')
-rw-r--r--pidgin/gtkdocklet-x11.c35
1 files changed, 2 insertions, 33 deletions
diff --git a/pidgin/gtkdocklet-x11.c b/pidgin/gtkdocklet-x11.c
index 0c9f360109..9d3391619c 100644
--- a/pidgin/gtkdocklet-x11.c
+++ b/pidgin/gtkdocklet-x11.c
@@ -229,35 +229,6 @@ docklet_x11_destroy()
}
static gboolean
-docklet_x11_get_geometry(gint *x, gint *y, gint *w, gint *h)
-{
- int lx,ly;
- GtkWidget *widget = GTK_WIDGET(docklet);
-
- if(docklet==NULL) return FALSE;
-
- gdk_window_get_origin(GDK_WINDOW(widget->window), &lx, &ly);
-
- if(x!=NULL) *x = lx + widget->allocation.x;
- if(y!=NULL) *y = ly + widget->allocation.y;
-
- if(w!=NULL) *w = widget->allocation.width;
- if(h!=NULL) *h = widget->allocation.height;
-
- return TRUE;
-}
-
-static GObject *
-docklet_x11_get_gdk_screen()
-{
-#if GTK_CHECK_VERSION(2,2,0)
- return (GObject *)gtk_widget_get_screen(GTK_WIDGET(docklet));
-#else
- return NULL;
-#endif
-}
-
-static gboolean
docklet_x11_embed_timeout_cb()
{
/* The docklet was not embedded within the timeout.
@@ -342,12 +313,10 @@ static struct docklet_ui_ops ui_ops =
docklet_x11_blank_icon,
docklet_x11_set_tooltip,
#if GTK_CHECK_VERSION(2,2,0)
- docklet_x11_position_menu,
+ docklet_x11_position_menu
#else
- NULL,
+ NULL
#endif
- docklet_x11_get_geometry,
- docklet_x11_get_gdk_screen
};
void