[gtk+/rendering-cleanup: 129/142] gtk: gdk_drawable_get_display() => gdk_window_get_display()
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 129/142] gtk: gdk_drawable_get_display() => gdk_window_get_display()
- Date: Thu, 9 Sep 2010 16:15:07 +0000 (UTC)
commit 2a2f2e326577a01da98cfddd0fee7a1cd194320d
Author: Benjamin Otte <otte redhat com>
Date: Sun Aug 29 02:08:24 2010 +0200
gtk: gdk_drawable_get_display() => gdk_window_get_display()
gtk/gtkaboutdialog.c | 2 +-
gtk/gtkclipboard.c | 2 +-
gtk/gtkdnd.c | 2 +-
gtk/gtkentry.c | 2 +-
gtk/gtkfilechooserentry.c | 2 +-
gtk/gtkhsv.c | 2 +-
gtk/gtkimcontextsimple.c | 2 +-
gtk/gtkmain.c | 2 +-
gtk/gtkplug-x11.c | 2 +-
gtk/gtkselection.c | 2 +-
gtk/gtksocket-x11.c | 2 +-
gtk/gtktextview.c | 4 ++--
gtk/gtktoolitemgroup.c | 2 +-
gtk/gtktoolpalette.c | 2 +-
gtk/gtktooltip.c | 2 +-
gtk/gtktreeview.c | 2 +-
gtk/gtktreeviewcolumn.c | 2 +-
gtk/gtkxembed.c | 2 +-
18 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index 1515eb8..0701407 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -2001,7 +2001,7 @@ text_view_visibility_notify_event (GtkWidget *text_view,
GList *devices, *d;
gint wx, wy, bx, by;
- display = gdk_drawable_get_display (event->window);
+ display = gdk_window_get_display (event->window);
device_manager = gdk_display_get_device_manager (display);
devices = gdk_device_manager_list_devices (device_manager, GDK_DEVICE_TYPE_MASTER);
diff --git a/gtk/gtkclipboard.c b/gtk/gtkclipboard.c
index 86caed4..acec308 100644
--- a/gtk/gtkclipboard.c
+++ b/gtk/gtkclipboard.c
@@ -1907,7 +1907,7 @@ _gtk_clipboard_handle_event (GdkEventOwnerChange *event)
GdkDisplay *display;
GtkClipboard *clipboard;
- display = gdk_drawable_get_display (event->window);
+ display = gdk_window_get_display (event->window);
clipboard = clipboard_peek (display, event->selection, TRUE);
if (clipboard)
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index ba71670..b8026c1 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -3163,7 +3163,7 @@ set_icon_stock_pixbuf (GdkDragContext *context,
else
g_object_ref (pixbuf);
- display = gdk_drawable_get_display (context->source_window);
+ display = gdk_window_get_display (context->source_window);
width = gdk_pixbuf_get_width (pixbuf);
height = gdk_pixbuf_get_height (pixbuf);
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 65456f5..cab156c 100644
--- a/gtk/gtkentry.c
+++ b/gtk/gtkentry.c
@@ -4060,7 +4060,7 @@ set_invisible_cursor (GdkWindow *window)
GdkDisplay *display;
GdkCursor *cursor;
- display = gdk_drawable_get_display (window);
+ display = gdk_window_get_display (window);
cursor = gdk_cursor_new_for_display (display, GDK_BLANK_CURSOR);
gdk_window_set_cursor (window, cursor);
diff --git a/gtk/gtkfilechooserentry.c b/gtk/gtkfilechooserentry.c
index a79eece..3f1125e 100644
--- a/gtk/gtkfilechooserentry.c
+++ b/gtk/gtkfilechooserentry.c
@@ -909,7 +909,7 @@ set_invisible_mouse_cursor (GdkWindow *window)
GdkDisplay *display;
GdkCursor *cursor;
- display = gdk_drawable_get_display (window);
+ display = gdk_window_get_display (window);
cursor = gdk_cursor_new_for_display (display, GDK_BLANK_CURSOR);
gdk_window_set_cursor (window, cursor);
diff --git a/gtk/gtkhsv.c b/gtk/gtkhsv.c
index 49a8122..fec5ddc 100644
--- a/gtk/gtkhsv.c
+++ b/gtk/gtkhsv.c
@@ -815,7 +815,7 @@ gtk_hsv_button_release (GtkWidget *widget,
} else
g_assert_not_reached ();
- gdk_display_pointer_ungrab (gdk_drawable_get_display (event->window),
+ gdk_display_pointer_ungrab (gdk_window_get_display (event->window),
event->time);
return TRUE;
}
diff --git a/gtk/gtkimcontextsimple.c b/gtk/gtkimcontextsimple.c
index ebbbd08..6bdd3cc 100644
--- a/gtk/gtkimcontextsimple.c
+++ b/gtk/gtkimcontextsimple.c
@@ -777,7 +777,7 @@ is_hex_keyval (guint keyval)
static guint
canonical_hex_keyval (GdkEventKey *event)
{
- GdkKeymap *keymap = gdk_keymap_get_for_display (gdk_drawable_get_display (event->window));
+ GdkKeymap *keymap = gdk_keymap_get_for_display (gdk_window_get_display (event->window));
guint keyval;
guint *keyvals = NULL;
gint n_vals = 0;
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 6d9eca5..006ade5 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1521,7 +1521,7 @@ rewrite_event_for_grabs (GdkEvent *event)
case GDK_PROXIMITY_OUT:
case GDK_KEY_PRESS:
case GDK_KEY_RELEASE:
- display = gdk_drawable_get_display (event->any.window);
+ display = gdk_window_get_display (event->any.window);
device = gdk_event_get_device (event);
if (!gdk_device_grab_info_libgtk_only (display, device, &grab_window, &owner_events) ||
diff --git a/gtk/gtkplug-x11.c b/gtk/gtkplug-x11.c
index db3831d..48d2818 100644
--- a/gtk/gtkplug-x11.c
+++ b/gtk/gtkplug-x11.c
@@ -136,7 +136,7 @@ static void
xembed_set_info (GdkWindow *window,
unsigned long flags)
{
- GdkDisplay *display = gdk_drawable_get_display (window);
+ GdkDisplay *display = gdk_window_get_display (window);
unsigned long buffer[2];
Atom xembed_info_atom = gdk_x11_get_xatom_by_name_for_display (display, "_XEMBED_INFO");
diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c
index ed618f8..92963d1 100644
--- a/gtk/gtkselection.c
+++ b/gtk/gtkselection.c
@@ -2516,7 +2516,7 @@ _gtk_selection_incr_event (GdkWindow *window,
g_message ("PropertyDelete, property %ld", event->atom);
#endif
- selection_max_size = GTK_SELECTION_MAX_SIZE (gdk_drawable_get_display (window));
+ selection_max_size = GTK_SELECTION_MAX_SIZE (gdk_window_get_display (window));
/* Now find the appropriate ongoing INCR */
tmp_list = current_incrs;
diff --git a/gtk/gtksocket-x11.c b/gtk/gtksocket-x11.c
index 54fb101..08fcd5a 100644
--- a/gtk/gtksocket-x11.c
+++ b/gtk/gtksocket-x11.c
@@ -297,7 +297,7 @@ xembed_get_info (GdkWindow *window,
unsigned long *version,
unsigned long *flags)
{
- GdkDisplay *display = gdk_drawable_get_display (window);
+ GdkDisplay *display = gdk_window_get_display (window);
Atom xembed_info_atom = gdk_x11_get_xatom_by_name_for_display (display, "_XEMBED_INFO");
Atom type;
int format;
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 402dd52..86156d0 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -4211,7 +4211,7 @@ set_invisible_cursor (GdkWindow *window)
GdkDisplay *display;
GdkCursor *cursor;
- display = gdk_drawable_get_display (window);
+ display = gdk_window_get_display (window);
cursor = gdk_cursor_new_for_display (display, GDK_BLANK_CURSOR);
gdk_window_set_cursor (window, cursor);
@@ -8435,7 +8435,7 @@ text_window_realize (GtkTextWindow *win,
if (gtk_widget_is_sensitive (widget))
{
/* I-beam cursor */
- cursor = gdk_cursor_new_for_display (gdk_drawable_get_display (window),
+ cursor = gdk_cursor_new_for_display (gdk_window_get_display (window),
GDK_XTERM);
gdk_window_set_cursor (win->bin_window, cursor);
gdk_cursor_unref (cursor);
diff --git a/gtk/gtktoolitemgroup.c b/gtk/gtktoolitemgroup.c
index 8e5ee1b..552e6da 100644
--- a/gtk/gtktoolitemgroup.c
+++ b/gtk/gtktoolitemgroup.c
@@ -1201,7 +1201,7 @@ gtk_tool_item_group_realize (GtkWidget *widget)
&attributes, attributes_mask);
gtk_widget_set_window (widget, window);
- display = gdk_drawable_get_display (window);
+ display = gdk_window_get_display (window);
if (gdk_display_supports_composite (display))
gdk_window_set_composited (window, TRUE);
diff --git a/gtk/gtktoolpalette.c b/gtk/gtktoolpalette.c
index 51cf5d3..b917696 100644
--- a/gtk/gtktoolpalette.c
+++ b/gtk/gtktoolpalette.c
@@ -626,7 +626,7 @@ gtk_tool_palette_expose_event (GtkWidget *widget,
window = gtk_widget_get_window (widget);
- display = gdk_drawable_get_display (window);
+ display = gdk_window_get_display (window);
if (!gdk_display_supports_composite (display))
return FALSE;
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index c35fde9..9486cd9 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -1434,7 +1434,7 @@ _gtk_tooltip_handle_event (GdkEvent *event)
/* Returns coordinates relative to has_tooltip_widget's allocation. */
has_tooltip_widget = find_topmost_widget_coords_from_event (event, &x, &y);
- display = gdk_drawable_get_display (event->any.window);
+ display = gdk_window_get_display (event->any.window);
current_tooltip = g_object_get_data (G_OBJECT (display),
"gdk-display-current-tooltip");
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 4727dc3..a712c54 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -3034,7 +3034,7 @@ gtk_tree_view_button_release_column_resize (GtkWidget *widget,
GTK_TREE_VIEW_UNSET_FLAG (tree_view, GTK_TREE_VIEW_IN_COLUMN_RESIZE);
gtk_grab_remove (widget);
- gdk_display_pointer_ungrab (gdk_drawable_get_display (event->window),
+ gdk_display_pointer_ungrab (gdk_window_get_display (event->window),
event->time);
return TRUE;
}
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index f323767..445f09d 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -1294,7 +1294,7 @@ _gtk_tree_view_column_realize_button (GtkTreeViewColumn *column)
GDK_POINTER_MOTION_HINT_MASK |
GDK_KEY_PRESS_MASK);
attributes_mask = GDK_WA_CURSOR | GDK_WA_X | GDK_WA_Y;
- attr.cursor = gdk_cursor_new_for_display (gdk_drawable_get_display (tree_view->priv->header_window),
+ attr.cursor = gdk_cursor_new_for_display (gdk_window_get_display (tree_view->priv->header_window),
GDK_SB_H_DOUBLE_ARROW);
attr.y = 0;
attr.width = TREE_VIEW_DRAG_WIDTH;
diff --git a/gtk/gtkxembed.c b/gtk/gtkxembed.c
index d5ab3bf..42c32e6 100644
--- a/gtk/gtkxembed.c
+++ b/gtk/gtkxembed.c
@@ -147,7 +147,7 @@ _gtk_xembed_send_message (GdkWindow *recipient,
g_return_if_fail (GDK_IS_WINDOW (recipient));
- display = gdk_drawable_get_display (recipient);
+ display = gdk_window_get_display (recipient);
GTK_NOTE (PLUGSOCKET,
g_message ("Sending %s", _gtk_xembed_message_name (message)));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]