gnome-control-center r9147 - trunk/typing-break
- From: jensg svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-control-center r9147 - trunk/typing-break
- Date: Thu, 20 Nov 2008 18:26:55 +0000 (UTC)
Author: jensg
Date: Thu Nov 20 18:26:55 2008
New Revision: 9147
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=9147&view=rev
Log:
2008-11-20 Jens Granseuer <jensgr gmx net>
Patch by: Maxim Ermilov <zaspire rambler ru>
* drw-selection.c: (drw_selection_reset),
(drw_selection_find_existing): use g_object_unref instead of the
deprecated gdk_window_unref (bug #561679)
Modified:
trunk/typing-break/ChangeLog
trunk/typing-break/drw-selection.c
Modified: trunk/typing-break/drw-selection.c
==============================================================================
--- trunk/typing-break/drw-selection.c (original)
+++ trunk/typing-break/drw-selection.c Thu Nov 20 18:26:55 2008
@@ -15,7 +15,7 @@
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL RED HAT
* BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
- * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* Author: Owen Taylor, Red Hat, Inc.
@@ -46,10 +46,10 @@
if (drw_selection->owner_window) {
gdk_window_remove_filter (drw_selection->owner_window,
drw_selection_filter, drw_selection);
- gdk_window_unref (drw_selection->owner_window);
+ g_object_unref (drw_selection->owner_window);
drw_selection->owner_window = NULL;
}
-
+
if (drw_selection->invisible) {
gtk_widget_destroy (drw_selection->invisible);
drw_selection->invisible = NULL;
@@ -81,20 +81,20 @@
drw_selection->owner_window = gdk_window_foreign_new (old);
}
XSync (xdisplay, False);
-
+
if (gdk_error_trap_pop () == 0 && drw_selection->owner_window) {
gdk_window_add_filter (drw_selection->owner_window,
drw_selection_filter, drw_selection);
-
+
XUngrabServer (xdisplay);
-
+
return TRUE;
} else {
if (drw_selection->owner_window) {
- gdk_window_unref (drw_selection->owner_window);
+ g_object_unref (drw_selection->owner_window);
drw_selection->owner_window = NULL;
}
-
+
return FALSE;
}
}
@@ -105,8 +105,8 @@
drw_selection->invisible = gtk_invisible_new ();
g_signal_connect (drw_selection->invisible, "selection-clear-event",
G_CALLBACK (drw_selection_clear), drw_selection);
-
-
+
+
if (gtk_selection_owner_set (drw_selection->invisible,
gdk_atom_intern (SELECTION_NAME, FALSE),
GDK_CURRENT_TIME)) {
@@ -167,7 +167,7 @@
drw_selection_start (void)
{
DrwSelection *drw_selection = g_new (DrwSelection, 1);
-
+
drw_selection->owner_window = NULL;
drw_selection->invisible = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]