summaryrefslogtreecommitdiff
path: root/gtk/gtkwindow.c
diff options
context:
space:
mode:
authorAlex Larsson <alexl@redhat.com>2001-09-08 00:30:13 +0000
committerAlexander Larsson <alexl@src.gnome.org>2001-09-08 00:30:13 +0000
commit27401e1e46e705afc8656c8c780c3c3e73c0c38c (patch)
treeddcc1804a007755c215f914b6b2536e8bb4a3fbe /gtk/gtkwindow.c
parent6341c2f9a202774b01118487c8ef735bfb34c132 (diff)
downloadgtk+-27401e1e46e705afc8656c8c780c3c3e73c0c38c.tar.gz
Removed unused function.
2001-09-07 Alex Larsson <alexl@redhat.com> * gdk/linux-fb/gdkcolor-fb.c: Removed unused function. * gdk/linux-fb/gdkdrawable-fb2.c * gdk/linux-fb/gdkfont-fb.c: Use PangoLanguage functions. * gdk/linux-fb/gdkinput.c: * gdk/linux-fb/gdkselection-fb.c: Fix const warnings. * gdk/linux-fb/gdkwindow-fb.c: Fix warning. Implement gdk_window_set_icon_list() and gdk_window_get_frame_extents(). (No icon support yet though.) * gtk/gtkwindow.c (gtk_window_get_position): If window->frame is set get the extents of it instead.
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r--gtk/gtkwindow.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 86ba6c46a9..0b51d273bd 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -2650,7 +2650,10 @@ gtk_window_get_position (GtkWindow *window,
if (GTK_WIDGET_MAPPED (widget))
{
- gdk_window_get_frame_extents (widget->window, &frame_extents);
+ if (window->frame)
+ gdk_window_get_frame_extents (window->frame, &frame_extents);
+ else
+ gdk_window_get_frame_extents (widget->window, &frame_extents);
x = frame_extents.x;
y = frame_extents.y;
gtk_window_get_size (window, &w, &h);