kov changed libgksu/trunk/ChangeLog, libgksu/trunk/Makefile.am, libgksu/trunk/gksu-properties/Makefile.am, libgksu/trunk/gksu-properties/gksu-properties.c, libgksu/trunk/gksu-properties/gksu-properties.desktop.in, libgksu/trunk/gksu.png

Gustavo Noronha kov at costa.debian.org
Thu Jul 6 00:48:53 UTC 2006


Mensagem de log: 
added a desktop file and an icon so that the capplet will be
shown in the preferences menu of the desktop


-----


Modified: libgksu/trunk/ChangeLog
===================================================================
--- libgksu/trunk/ChangeLog	2006-07-03 23:49:19 UTC (rev 640)
+++ libgksu/trunk/ChangeLog	2006-07-06 00:48:53 UTC (rev 641)
@@ -1,3 +1,10 @@
+2006-07-05  Gustavo Noronha Silva  <kov at debian.org>
+
+	* gksu.png, gksu-properties/{Makefile.am,gksu-properties.desktop.in,
+	  gksu-properties.c}:
+	- added an icon, and a desktop file so that the capplet will show in
+	  the preferences menu for the desktop
+
 2006-07-03  Gustavo Noronha Silva  <kov at debian.org>
 
 	* libgksu/libgksu.c:

Modified: libgksu/trunk/Makefile.am
===================================================================
--- libgksu/trunk/Makefile.am	2006-07-03 23:49:19 UTC (rev 640)
+++ libgksu/trunk/Makefile.am	2006-07-06 00:48:53 UTC (rev 641)
@@ -10,6 +10,9 @@
 schemas_DATA     = $(schemas_in_files:.schemas.in=.schemas)
 @INTLTOOL_SCHEMAS_RULE@
 
+pixmapdir = $(datadir)/pixmaps
+pixmap_DATA = gksu.png
+
 EXTRA_DIST = config.rpath mkinstalldirs intltool-extract.in intltool-merge.in intltool-update.in gksu.schemas.in
 
 if GCONF_SCHEMAS_INSTALL

Modified: libgksu/trunk/gksu-properties/Makefile.am
===================================================================
--- libgksu/trunk/gksu-properties/Makefile.am	2006-07-03 23:49:19 UTC (rev 640)
+++ libgksu/trunk/gksu-properties/Makefile.am	2006-07-06 00:48:53 UTC (rev 641)
@@ -8,3 +8,11 @@
 
 gladedir = ${prefix}/share/${PACKAGE}
 glade_DATA = gksu-properties.glade
+
+ at INTLTOOL_DESKTOP_RULE@
+
+desktopdir = $(datadir)/applications
+Desktop_in_files = gksu-properties.desktop.in
+desktop_DATA = $(Desktop_in_files:.desktop.in=.desktop)
+
+EXTRA_DIST = $(glade_DATA) $(Desktop_in_files)

Modified: libgksu/trunk/gksu-properties/gksu-properties.c
===================================================================
--- libgksu/trunk/gksu-properties/gksu-properties.c	2006-07-03 23:49:19 UTC (rev 640)
+++ libgksu/trunk/gksu-properties/gksu-properties.c	2006-07-06 00:48:53 UTC (rev 641)
@@ -113,7 +113,14 @@
 void
 create_dialog ()
 {
+  GdkPixbuf *icon;
   main_window = glade_xml_get_widget (gui, "main_window");
+  icon = gdk_pixbuf_new_from_file (DATA_DIR"/pixmaps/gksu.png", NULL);
+  if (icon)
+    gtk_window_set_icon (GTK_WINDOW(main_window), icon);
+  else
+    g_warning ("Error loading window icon %s",
+	       DATA_DIR "/pixmaps/gksu.png\n");
 
   grab_combo = glade_xml_get_widget (gui, "grab_combo");
   update_grab_combo ();

Added: libgksu/trunk/gksu-properties/gksu-properties.desktop.in
===================================================================
--- libgksu/trunk/gksu-properties/gksu-properties.desktop.in	2006-07-03 23:49:19 UTC (rev 640)
+++ libgksu/trunk/gksu-properties/gksu-properties.desktop.in	2006-07-06 00:48:53 UTC (rev 641)
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Encoding=UTF-8
+_Name=Privilege granting
+_Comment=Configure behavior of the privilege-granting tool
+Exec=gksu-properties
+Icon=gksu.png
+StartupNotify=true
+Terminal=false
+Type=Application
+Categories=GNOME;GTK;Application;Settings;AdvancedSettings;
+OnlyShowIn=GNOME;XFCE;

Added: libgksu/trunk/gksu.png
===================================================================
(Binary files differ)


Property changes on: libgksu/trunk/gksu.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream




More information about the gksu-commits mailing list