summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElijah Newren <newren gmail com>2006-09-07 22:57:36 +0000
committerElijah Newren <newren@src.gnome.org>2006-09-07 22:57:36 +0000
commitbba4df71870ac9bba3d1d27b631c7de734d514f9 (patch)
tree18b679ec8d56f593fd24ac1e2670bea2e2f2cec6
parentc808195eef37f01acfc08be2ed37e8aff30868a3 (diff)
downloadmetacity-bba4df71870ac9bba3d1d27b631c7de734d514f9.tar.gz
Patch from Bruno Boaventura de Oliveira Lacerda to replace
2006-09-07 Elijah Newren <newren gmail com> * src/metacity-dialog.c: Patch from Bruno Boaventura de Oliveira Lacerda to replace copy_of_gdk_x11_window_set_user_time() with gdk_x11_window_set_user_time(). We've long since adopted gtk+ >= 2.6 as a dependency. #352293
-rw-r--r--ChangeLog7
-rw-r--r--src/metacity-dialog.c29
2 files changed, 10 insertions, 26 deletions
diff --git a/ChangeLog b/ChangeLog
index 679e7f42..911cdb8a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-09-07 Elijah Newren <newren gmail com>
+
+ * src/metacity-dialog.c: Patch from Bruno Boaventura de Oliveira
+ Lacerda to replace copy_of_gdk_x11_window_set_user_time() with
+ gdk_x11_window_set_user_time(). We've long since adopted gtk+ >=
+ 2.6 as a dependency. #352293
+
2006-09-04 Thomas Thurman <thomas@thurman.org.uk>
* configure.in: post-release version bump to 2.16.1
diff --git a/src/metacity-dialog.c b/src/metacity-dialog.c
index 08cb65cb..c94ca66c 100644
--- a/src/metacity-dialog.c
+++ b/src/metacity-dialog.c
@@ -33,29 +33,6 @@
#include <gdk/gdkx.h>
#include <X11/Xatom.h>
-/* FIXME: When we switch to gtk+-2.6, use of this function should be
- * replaced by using the real gdk_x11_window_set_user_time.
- */
-static void
-copy_of_gdk_x11_window_set_user_time (GdkWindow *window,
- Time timestamp)
-{
- GdkDisplay *display;
-
- g_return_if_fail (window != NULL);
- g_return_if_fail (GDK_IS_WINDOW (window));
-
- if (GDK_WINDOW_DESTROYED (window))
- return;
-
- display = gdk_drawable_get_display (window);
-
- XChangeProperty (GDK_DISPLAY_XDISPLAY (display), GDK_WINDOW_XID (window),
- gdk_x11_get_xatom_by_name_for_display (display, "_NET_WM_USER_TIME"),
- XA_CARDINAL, 32, PropModeReplace,
- (guchar *)&timestamp, 1);
-}
-
static Window
window_from_string (const char *str)
{
@@ -137,7 +114,7 @@ kill_window_question (const char *window_name,
G_CALLBACK (on_realize), (char*) parent_str);
gtk_widget_realize (dialog);
- copy_of_gdk_x11_window_set_user_time (dialog->window, timestamp);
+ gdk_x11_window_set_user_time (dialog->window, timestamp);
/* return our PID, then window ID that should be killed */
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT)
@@ -304,7 +281,7 @@ warn_about_no_sm_support (char **lame_apps,
gtk_window_stick (GTK_WINDOW (dialog));
gtk_widget_realize (dialog);
- copy_of_gdk_x11_window_set_user_time (dialog->window, timestamp);
+ gdk_x11_window_set_user_time (dialog->window, timestamp);
gtk_widget_grab_focus (button);
gtk_widget_show_all (dialog);
@@ -339,7 +316,7 @@ error_about_command (const char *gconf_key,
gtk_window_set_icon_name (GTK_WINDOW (dialog), "stock_dialog-error");
gtk_widget_realize (dialog);
- copy_of_gdk_x11_window_set_user_time (dialog->window, timestamp);
+ gdk_x11_window_set_user_time (dialog->window, timestamp);
gtk_dialog_run (GTK_DIALOG (dialog));