summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-08-29 01:18:43 +0200
committerBenjamin Otte <otte@redhat.com>2010-09-26 15:11:33 +0200
commit9f47be221689646f4de7e9138bfccf89310f2281 (patch)
tree44df4a6698dab0bc573fd457c0fbd4532eed36b7 /gtk
parent5b9bbf9de2a73e1e092bf094e551fabbbb3723fd (diff)
downloadgtk+-9f47be221689646f4de7e9138bfccf89310f2281.tar.gz
gtk: gdk_drawable_get_screen/visual => gdk_window_get_screen/visual
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtkdnd-quartz.c2
-rw-r--r--gtk/gtkdnd.c12
-rw-r--r--gtk/gtkimcontextsimple.c2
-rw-r--r--gtk/gtkimmodule.c2
-rw-r--r--gtk/gtkimmulticontext.c2
-rw-r--r--gtk/gtkplug-win32.c2
-rw-r--r--gtk/gtkplug-x11.c2
-rw-r--r--gtk/gtksettings.c2
-rw-r--r--gtk/gtksocket-x11.c2
-rw-r--r--gtk/gtkstyle.c2
-rw-r--r--gtk/gtktooltip.c2
-rw-r--r--gtk/gtktreeview.c2
-rw-r--r--gtk/gtkwidget.c8
13 files changed, 21 insertions, 21 deletions
diff --git a/gtk/gtkdnd-quartz.c b/gtk/gtkdnd-quartz.c
index 3d40f163d0..23ec00b47b 100644
--- a/gtk/gtkdnd-quartz.c
+++ b/gtk/gtkdnd-quartz.c
@@ -1685,7 +1685,7 @@ gtk_drag_set_icon_name (GdkDragContext *context,
g_return_if_fail (context->is_source);
g_return_if_fail (icon_name != NULL);
- screen = gdk_drawable_get_screen (context->source_window);
+ screen = gdk_window_get_screen (context->source_window);
g_return_if_fail (screen != NULL);
settings = gtk_settings_get_for_screen (screen);
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 4f3c8d62eb..9a7ab20dfc 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -1076,7 +1076,7 @@ gtk_drag_finish (GdkDragContext *context,
if (target != GDK_NONE)
{
- GtkWidget *selection_widget = gtk_drag_get_ipc_widget_for_screen (gdk_drawable_get_screen (context->source_window));
+ GtkWidget *selection_widget = gtk_drag_get_ipc_widget_for_screen (gdk_window_get_screen (context->source_window));
g_object_ref (context);
@@ -2143,7 +2143,7 @@ gtk_drag_dest_motion (GtkWidget *widget,
{
gdk_drag_find_window_for_screen (info->proxy_source->context,
NULL,
- gdk_drawable_get_screen (current_event->dnd.window),
+ gdk_window_get_screen (current_event->dnd.window),
current_event->dnd.x_root,
current_event->dnd.y_root,
&dest_window, &proto);
@@ -2265,7 +2265,7 @@ gtk_drag_dest_drop (GtkWidget *widget,
{
gdk_drag_find_window_for_screen (info->proxy_source->context,
NULL,
- gdk_drawable_get_screen (current_event->dnd.window),
+ gdk_window_get_screen (current_event->dnd.window),
current_event->dnd.x_root,
current_event->dnd.y_root,
&dest_window, &proto);
@@ -3127,7 +3127,7 @@ set_icon_stock_pixbuf (GdkDragContext *context,
g_return_if_fail (pixbuf != NULL || stock_id != NULL);
g_return_if_fail (pixbuf == NULL || stock_id == NULL);
- screen = gdk_drawable_get_screen (context->source_window);
+ screen = gdk_window_get_screen (context->source_window);
window = gtk_window_new (GTK_WINDOW_POPUP);
gtk_window_set_type_hint (GTK_WINDOW (window), GDK_WINDOW_TYPE_HINT_DND);
@@ -3295,7 +3295,7 @@ gtk_drag_set_icon_surface (GdkDragContext *context,
_gtk_cairo_surface_extents (surface, &extents);
- screen = gdk_drawable_get_screen (context->source_window);
+ screen = gdk_window_get_screen (context->source_window);
window = gtk_window_new (GTK_WINDOW_POPUP);
gtk_window_set_type_hint (GTK_WINDOW (window), GDK_WINDOW_TYPE_HINT_DND);
@@ -3385,7 +3385,7 @@ gtk_drag_set_icon_name (GdkDragContext *context,
g_return_if_fail (context->is_source);
g_return_if_fail (icon_name != NULL);
- screen = gdk_drawable_get_screen (context->source_window);
+ screen = gdk_window_get_screen (context->source_window);
g_return_if_fail (screen != NULL);
settings = gtk_settings_get_for_screen (screen);
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c
index b5d5937c4b..ebbbd08d6b 100644
--- a/gtk/gtkimcontextsimple.c
+++ b/gtk/gtkimcontextsimple.c
@@ -701,7 +701,7 @@ beep_window (GdkWindow *window)
}
else
{
- GdkScreen *screen = gdk_drawable_get_screen (GDK_DRAWABLE (window));
+ GdkScreen *screen = gdk_window_get_screen (GDK_DRAWABLE (window));
gboolean beep;
g_object_get (gtk_settings_get_for_screen (screen),
diff --git a/gtk/gtkimmodule.c b/gtk/gtkimmodule.c
index 70a689d39c..788631d2ee 100644
--- a/gtk/gtkimmodule.c
+++ b/gtk/gtkimmodule.c
@@ -683,7 +683,7 @@ _gtk_im_module_get_default_context_id (GdkWindow *client_window)
*/
if (GDK_IS_DRAWABLE (client_window))
{
- screen = gdk_drawable_get_screen (GDK_DRAWABLE (client_window));
+ screen = gdk_window_get_screen (GDK_DRAWABLE (client_window));
settings = gtk_settings_get_for_screen (screen);
g_object_get (G_OBJECT (settings), "gtk-im-module", &tmp, NULL);
if (tmp)
diff --git a/gtk/gtkimmulticontext.c b/gtk/gtkimmulticontext.c
index 35e5221b28..a8357babfe 100644
--- a/gtk/gtkimmulticontext.c
+++ b/gtk/gtkimmulticontext.c
@@ -297,7 +297,7 @@ gtk_im_multicontext_set_client_window (GtkIMContext *context,
if (window)
{
- screen = gdk_drawable_get_screen (GDK_DRAWABLE (window));
+ screen = gdk_window_get_screen (GDK_DRAWABLE (window));
settings = gtk_settings_get_for_screen (screen);
connected = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (settings),
diff --git a/gtk/gtkplug-win32.c b/gtk/gtkplug-win32.c
index 2ca92c2bb7..15031fa5ae 100644
--- a/gtk/gtkplug-win32.c
+++ b/gtk/gtkplug-win32.c
@@ -169,7 +169,7 @@ _gtk_plug_windowing_filter_func (GdkXEvent *gdk_xevent,
{
HWND parent = GetAncestor (msg->hwnd, GA_PARENT);
gboolean was_embedded = priv->socket_window != NULL;
- GdkScreen *screen = gdk_drawable_get_screen (event->any.window);
+ GdkScreen *screen = gdk_window_get_screen (event->any.window);
GdkDisplay *display = gdk_screen_get_display (screen);
GTK_NOTE (PLUGSOCKET, g_printerr ("WM_WINDOWPOSCHANGED: hwnd=%p GA_PARENT=%p socket_window=%p\n", msg->hwnd, parent, priv->socket_window));
diff --git a/gtk/gtkplug-x11.c b/gtk/gtkplug-x11.c
index da8e5ea360..db3831d5e1 100644
--- a/gtk/gtkplug-x11.c
+++ b/gtk/gtkplug-x11.c
@@ -223,7 +223,7 @@ _gtk_plug_windowing_filter_func (GdkXEvent *gdk_xevent,
GdkEvent *event,
gpointer data)
{
- GdkScreen *screen = gdk_drawable_get_screen (event->any.window);
+ GdkScreen *screen = gdk_window_get_screen (event->any.window);
GdkDisplay *display = gdk_screen_get_display (screen);
GtkPlug *plug = GTK_PLUG (data);
GtkPlugPrivate *priv = plug->priv;
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index 4e1f2040af..57e4294216 100644
--- a/gtk/gtksettings.c
+++ b/gtk/gtksettings.c
@@ -1974,7 +1974,7 @@ _gtk_settings_handle_event (GdkEventSetting *event)
GParamSpec *pspec;
guint property_id;
- settings = gtk_settings_get_for_screen (gdk_drawable_get_screen (event->window));
+ settings = gtk_settings_get_for_screen (gdk_window_get_screen (event->window));
pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (settings), event->name);
if (pspec)
diff --git a/gtk/gtksocket-x11.c b/gtk/gtksocket-x11.c
index f3ebce4caa..6866d7437a 100644
--- a/gtk/gtksocket-x11.c
+++ b/gtk/gtksocket-x11.c
@@ -129,7 +129,7 @@ _gtk_socket_windowing_send_key_event (GtkSocket *socket,
gboolean mask_key_presses)
{
XKeyEvent xkey;
- GdkScreen *screen = gdk_drawable_get_screen (socket->plug_window);
+ GdkScreen *screen = gdk_window_get_screen (socket->plug_window);
memset (&xkey, 0, sizeof (xkey));
xkey.type = (gdk_event->type == GDK_KEY_PRESS) ? KeyPress : KeyRelease;
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index dbefce2370..2df6c4bcce 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -678,7 +678,7 @@ gtk_style_attach (GtkStyle *style,
g_return_val_if_fail (GTK_IS_STYLE (style), NULL);
g_return_val_if_fail (window != NULL, NULL);
- visual = gdk_drawable_get_visual (window);
+ visual = gdk_window_get_visual (window);
if (!style->styles)
style->styles = g_slist_append (NULL, style);
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index 8808609893..758440a764 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -1412,7 +1412,7 @@ tooltips_enabled (GdkWindow *window)
GdkScreen *screen;
GtkSettings *settings;
- screen = gdk_drawable_get_screen (window);
+ screen = gdk_window_get_screen (window);
settings = gtk_settings_get_for_screen (screen);
g_object_get (settings,
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 8afb719e6a..262bc9fc54 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -14257,7 +14257,7 @@ gtk_tree_view_search_position_func (GtkTreeView *tree_view,
gint tree_x, tree_y;
gint tree_width, tree_height;
GdkWindow *tree_window = gtk_widget_get_window (GTK_WIDGET (tree_view));
- GdkScreen *screen = gdk_drawable_get_screen (tree_window);
+ GdkScreen *screen = gdk_window_get_screen (tree_window);
GtkRequisition requisition;
gint monitor_num;
GdkRectangle monitor;
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index dfd14ef11b..7a8fd33a08 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -8675,7 +8675,7 @@ gtk_widget_get_visual (GtkWidget *widget)
{
if (gtk_widget_get_has_window (w) &&
w->priv->window)
- return gdk_drawable_get_visual (w->priv->window);
+ return gdk_window_get_visual (w->priv->window);
if (GTK_IS_WINDOW (w))
return _gtk_window_get_visual (GTK_WINDOW (w));
@@ -9350,7 +9350,7 @@ _gtk_widget_set_device_window (GtkWidget *widget,
if (!gtk_widget_get_realized (widget))
return;
- screen = gdk_drawable_get_screen (priv->window);
+ screen = gdk_window_get_screen (priv->window);
device_window = g_object_get_qdata (G_OBJECT (screen), quark_pointer_window);
if (G_UNLIKELY (!device_window))
@@ -9394,7 +9394,7 @@ _gtk_widget_get_device_window (GtkWidget *widget,
if (!gtk_widget_get_realized (widget))
return NULL;
- screen = gdk_drawable_get_screen (priv->window);
+ screen = gdk_window_get_screen (priv->window);
device_window = g_object_get_qdata (G_OBJECT (screen), quark_pointer_window);
if (G_UNLIKELY (!device_window))
@@ -9438,7 +9438,7 @@ _gtk_widget_list_devices (GtkWidget *widget)
if (!gtk_widget_get_realized (widget))
return NULL;
- screen = gdk_drawable_get_screen (priv->window);
+ screen = gdk_window_get_screen (priv->window);
device_window = g_object_get_qdata (G_OBJECT (screen), quark_pointer_window);
if (G_UNLIKELY (!device_window))