Added README changes, replace "background" with "lxpanel-background"
authorMichael Rawson <michaelrawson76@gmail.com>
Sun, 20 May 2012 14:21:32 +0000 (15:21 +0100)
committerJulien Lavergne <julien.lavergne@gmail.com>
Sun, 5 Aug 2012 11:44:08 +0000 (13:44 +0200)
README
src/configurator.c

diff --git a/README b/README
index 6e743ab..ae4eb59 100644 (file)
--- a/README
+++ b/README
@@ -26,3 +26,22 @@ About Netstat and Netstatus plugins:
 2. netstat is a new plugin written by LxDE developers as the lightweight
    replacement of netstatus plugin.  It aims to be more usable and resource
    efficient.  At the current stage, netstat runs only on Linux.
+
+About theming & lxpanel:
+
+1. In future, hardcoding should not be used for icon lookup. Instead, use Gtk's built-in functions to handle icon lookup. If necessary, provide a fallback (hardcoded) icon.
+
+2. Current icon names that can be themed specifically for lxpanel include:
+       *"lxpanel-background"
+       *"clock"
+       *"capslock-on"
+       *"capslock-off"
+       *"numlock-on"
+       *"numlock-off"
+       *"scrllock-on"
+       *"scrllock-off"
+       *"wincmd"
+       *"ns-lock"
+       *possibly more, as yet unfound.
+
+There are also a substantial amount of others, but they use the icon naming specification.
index 62dde40..5f9b907 100644 (file)
@@ -1009,7 +1009,7 @@ void panel_configure( Panel* p, int sel_page )
         w = (GtkWidget*)gtk_builder_get_object( builder, "img_file" );
         g_object_set_data(G_OBJECT(img), "img_file", w);
         gtk_file_chooser_set_filename(GTK_FILE_CHOOSER(w),
-            ((p->background_file != NULL) ? p->background_file : gtk_icon_info_get_filename(gtk_icon_theme_lookup_icon(p->icon_theme, "background", 0, 0))));
+            ((p->background_file != NULL) ? p->background_file : gtk_icon_info_get_filename(gtk_icon_theme_lookup_icon(p->icon_theme, "lxpanel-backkground", 0, 0))));
 
         if (!p->background)
             gtk_widget_set_sensitive( w, FALSE);