[gtk+/rendering-cleanup: 28/65] gail: Avoid needless calls to GdkDrawable
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/rendering-cleanup: 28/65] gail: Avoid needless calls to GdkDrawable
- Date: Thu, 2 Dec 2010 11:53:48 +0000 (UTC)
commit b851ca47848b4f216016477fc2fa5ce8ecdcd5d4
Author: Benjamin Otte <otte redhat com>
Date: Mon Nov 22 17:47:05 2010 +0100
gail: Avoid needless calls to GdkDrawable
modules/other/gail/gailwindow.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/modules/other/gail/gailwindow.c b/modules/other/gail/gailwindow.c
index 75d9a1c..73b1993 100644
--- a/modules/other/gail/gailwindow.c
+++ b/modules/other/gail/gailwindow.c
@@ -827,8 +827,7 @@ filter_func (GdkXEvent *gdkxevent,
if (window)
{
- screen_n = gdk_screen_get_number (
- gdk_window_get_screen (GDK_DRAWABLE (window)));
+ screen_n = gdk_screen_get_number (gdk_window_get_screen (window));
gail_screens [screen_n].update_stacked_windows = TRUE;
if (!gail_screens [screen_n].update_handler)
@@ -965,8 +964,7 @@ get_window_zorder (GdkWindow *window)
gail_return_val_if_fail (GDK_IS_WINDOW (window), -1);
- info = get_screen_info (
- gdk_window_get_screen (GDK_DRAWABLE (window)));
+ info = get_screen_info (gdk_window_get_screen (window));
gail_return_val_if_fail (info->stacked_windows != NULL, -1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]