Author: colossus
Date: 2006-11-23 11:21:50 +0000 (Thu, 23 Nov 2006)
New Revision: 23937
Modified:
xarchiver/trunk/src/interface.c
xarchiver/trunk/src/support.c
Log:
Fixed window icon loading and pixmaps images.
Modified: xarchiver/trunk/src/interface.c
===================================================================
--- xarchiver/trunk/src/interface.c 2006-11-23 08:14:13 UTC (rev 23936)
+++ xarchiver/trunk/src/interface.c 2006-11-23 11:21:50 UTC (rev 23937)
@@ -49,13 +49,18 @@
GtkWidget *create_MainWindow (void)
{
+ GdkPixbuf *icon;
+ GtkIconTheme *icon_theme;
+
tooltips = gtk_tooltips_new ();
accel_group = gtk_accel_group_new ();
MainWindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
xa_set_window_title (MainWindow , NULL);
- gtk_window_set_default_icon_from_file (DATADIR
"/pixmaps/xarchiver.png", NULL );
+ icon_theme = gtk_icon_theme_get_default();
+ icon = gtk_icon_theme_load_icon(icon_theme, "xarchiver", 24, 0, NULL);
+ gtk_window_set_icon (GTK_WINDOW(MainWindow),icon);
g_signal_connect (G_OBJECT (MainWindow), "delete-event", G_CALLBACK
(xa_quit_application), NULL);
/* Create the menus */
Modified: xarchiver/trunk/src/support.c
===================================================================
--- xarchiver/trunk/src/support.c 2006-11-23 08:14:13 UTC (rev 23936)
+++ xarchiver/trunk/src/support.c 2006-11-23 11:21:50 UTC (rev 23937)
@@ -32,7 +32,7 @@
gchar *path;
GdkPixbuf *file_pixbuf = NULL;
- path = g_strconcat("/usr/share/icons/48x48/", filename, NULL);
+ path = g_strconcat("/pixmaps/xarchiver/", filename, NULL);
file_pixbuf = gdk_pixbuf_new_from_file (path, &error);
g_free (path);
if ( file_pixbuf == NULL )
_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits