rpms/lock-keys-applet/devel new-tooltips-api.patch, NONE, 1.1 lock-keys-applet.spec, 1.17, 1.18

Jorge Alberto Torres (jorge) fedora-extras-commits at redhat.com
Fri Aug 3 17:44:08 UTC 2007


Author: jorge

Update of /cvs/pkgs/rpms/lock-keys-applet/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7297

Modified Files:
	lock-keys-applet.spec 
Added Files:
	new-tooltips-api.patch 
Log Message:
Port to new GTK+ tooltips API

new-tooltips-api.patch:

--- NEW FILE new-tooltips-api.patch ---
diff -uNr lock-keys-applet-1.0.orig/src/lock-keys-applet.c lock-keys-applet-1.0/src/lock-keys-applet.c
--- lock-keys-applet-1.0.orig/src/lock-keys-applet.c	2003-02-05 11:29:21.000000000 -0500
+++ lock-keys-applet-1.0/src/lock-keys-applet.c	2007-08-03 12:24:37.000000000 -0500
@@ -61,8 +61,6 @@
 	gboolean show[3];
 	
 	GtkDialog *about, *settings;
-	
-	GtkTooltips *tooltips;
 } LedApplet;
 
 static const char 
@@ -497,7 +495,7 @@
 	off = _("Off");
 	buf = g_strdup_printf(_("Caps: %s Num: %s Scroll: %s"), applet->on[CAPSLOCK] ? on : off, 
 		applet->on[NUMLOCK] ? on : off,applet->on[SCROLLLOCK] ? on : off);
-	gtk_tooltips_set_tip(applet->tooltips, GTK_WIDGET(applet->applet), buf, "");
+	gtk_widget_set_tooltip_text (GTK_WIDGET (applet->applet), buf);
 	g_free(buf);
 }
 
@@ -588,8 +586,6 @@
 	g_assert(drawable);
 	applet->rootwin = gdk_x11_drawable_get_xdisplay(drawable);
 	
-	applet->tooltips = gtk_tooltips_new();
-	
 	applet->vbox = gtk_vbox_new(FALSE, 0);
 	applet->hbox = gtk_hbox_new(FALSE, 0);
 	


Index: lock-keys-applet.spec
===================================================================
RCS file: /cvs/pkgs/rpms/lock-keys-applet/devel/lock-keys-applet.spec,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- lock-keys-applet.spec	3 Aug 2007 15:50:46 -0000	1.17
+++ lock-keys-applet.spec	3 Aug 2007 17:43:36 -0000	1.18
@@ -1,12 +1,13 @@
 Name:           lock-keys-applet
 Version:        1.0
-Release:        12%{?dist}
+Release:        13%{?dist}
 
 Summary:        A GNOME panel applet that shows the status of the lock keys
 Group:          Applications/System
 License:        GPLv2+
 URL:            http://mfcn.ilo.de/led_applet/
 Source0:        http://www.wh-hms.uni-ulm.de/~mfcn/shared/lock-keys/lock-keys-applet-1.0.tar.gz
+patch0:		new-tooltips-api.patch	
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires:  libgnomeui-devel gnome-panel-devel scrollkeeper gettext
 Requires(post): scrollkeeper
@@ -21,6 +22,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure
@@ -50,6 +52,9 @@
 %{_libexecdir}/%{name}
 
 %changelog
+* Fri Aug 3 2007 Jorge Torres <jtorresh at gmail.com> 1.0-13
+- Port to new GTK+ tooltips API
+
 * Fri Aug 3 2007 Jorge Torres <jtorresh at gmail.com> 1.0-12
 - Update license tag
 			  




More information about the fedora-extras-commits mailing list