rpms/gnome-panel/devel panel-resizing.patch, NONE, 1.1 gnome-panel.spec, 1.345, 1.346

Matthias Clasen mclasen at fedoraproject.org
Tue Feb 24 00:37:43 UTC 2009


Author: mclasen

Update of /cvs/pkgs/rpms/gnome-panel/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv29346

Modified Files:
	gnome-panel.spec 
Added Files:
	panel-resizing.patch 
Log Message:
fix panel resizing


panel-resizing.patch:

--- NEW FILE panel-resizing.patch ---
--- gnome-panel-2.25.91/gnome-panel/panel-multiscreen.c	2009-02-17 04:25:39.000000000 -0500
+++ hacked/gnome-panel/panel-multiscreen.c	2009-02-23 19:23:06.571095094 -0500
@@ -40,6 +40,26 @@
 static int           *monitors    = NULL;
 static GdkRectangle **geometries  = NULL;
 static gboolean	      initialized = FALSE;
+static guint          reinit_id   = 0;
+
+static gboolean
+panel_multiscreen_reinit_idle (gpointer data)
+{
+	panel_multiscreen_reinit ();
+
+ 	reinit_id = 0;
+
+	return FALSE;
+}
+
+static void
+panel_multiscreen_queue_reinit (void)
+{
+	if (reinit_id)
+		return;
+
+	reinit_id = g_idle_add (panel_multiscreen_reinit_idle, NULL);
+}
 
 void
 panel_multiscreen_init (void)
@@ -63,7 +83,9 @@
 		screen = gdk_display_get_screen (display, i);
 
 		g_signal_connect (screen, "size-changed",
-				  G_CALLBACK (panel_multiscreen_reinit), NULL);
+				  G_CALLBACK (panel_multiscreen_queue_reinit), NULL);
+		g_signal_connect (screen, "monitors-changed",
+				  G_CALLBACK (panel_multiscreen_queue_reinit), NULL);
 
 		monitors   [i] = gdk_screen_get_n_monitors (screen);
 		geometries [i] = g_new0 (GdkRectangle, monitors [i]);
@@ -105,7 +127,7 @@
 
 		screen = gdk_display_get_screen (display, i);
 		g_signal_handlers_disconnect_by_func (screen,
-						      panel_multiscreen_reinit,
+						      panel_multiscreen_queue_reinit,
 						      NULL);
 	}
 


Index: gnome-panel.spec
===================================================================
RCS file: /cvs/pkgs/rpms/gnome-panel/devel/gnome-panel.spec,v
retrieving revision 1.345
retrieving revision 1.346
diff -u -r1.345 -r1.346
--- gnome-panel.spec	19 Feb 2009 05:03:20 -0000	1.345
+++ gnome-panel.spec	24 Feb 2009 00:37:13 -0000	1.346
@@ -23,7 +23,7 @@
 Summary: GNOME panel
 Name: gnome-panel
 Version: 2.25.91
-Release: 1%{?dist}
+Release: 2%{?dist}
 URL: http://www.gnome.org
 Source0: http://download.gnome.org/sources/gnome-panel/2.25/%{name}-%{version}.tar.bz2
 
@@ -113,6 +113,9 @@
 # http://bugzilla.gnome.org/show_bug.cgi?id=520111
 Patch24: gnome-panel-2.21.92-allow-spurious-view-done-signals.patch
 
+# http://bugzilla.gnome.org/show_bug.cgi?id=572933
+Patch25: panel-resizing.patch
+
 Patch35: clock-wakeups.patch
 
 Conflicts: gnome-power-manager < 2.15.3
@@ -160,6 +163,7 @@
 %patch10 -p1 -b .preferred-apps
 %patch11 -p1 -b .applet-error
 %patch24 -p1 -b .allow-spurious-view-done-signals
+%patch25 -p1 -b .panel-resizing
 %patch35 -p1 -b .clock-wakeups
 
 libtoolize --force --copy
@@ -362,6 +366,9 @@
 %{_datadir}/gtk-doc/html/*
 
 %changelog
+* Mon Feb 23 2009 Matthias Clasen <mclasen at redhat.com> - 2.25.91-2
+- Fix panel behaviour on screen size changes
+
 * Thu Feb 19 2009 Matthias Clasen <mclasen at redhat.com> - 2.25.91-1
 - Update to 2.25.91
 




More information about the scm-commits mailing list