small cleanup for themes.c
authorDana Jansens <danakj@orodu.net>
Thu, 31 May 2007 06:10:02 +0000 (06:10 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 31 May 2007 06:10:02 +0000 (06:10 +0000)
src/desktops.h
src/main.c
src/theme.c
src/theme.h

index 96acc0c0fd70239d48635a0c96ad87388ab3528c..1ba3e366d41f5c3d7c0fff358c22d7bac44c3dca 100644 (file)
@@ -1,3 +1,22 @@
+/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
+
+   desktops.h for ObConf, the configuration tool for Openbox
+   Copyright (c) 2003-2007   Dana Jansens
+   Copyright (c) 2003        Tim Riley
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   See the COPYING file for a copy of the GNU General Public License.
+*/
+
 #ifndef obconf__desktops_h
 #define obconf__desktops_h
 
index 8e55c877e1774b776ffb89bf71d62eaf272bd7e5..f038a1b4ab959fffee1eb66633d938d547639d40 100644 (file)
@@ -156,8 +156,7 @@ int main(int argc, char **argv)
         g_free(s);
     }
 
-    theme_setup_names(get_widget("theme_names"));
-
+    theme_setup_tab();
     appearance_setup_tab();
 
     behavior_setup_tab();
index 997c8bb4c1ccc529af56581ca0015dbcb80e9125..a6e297fc4fce2b3602c669dd3c8b6de831fa836e 100644 (file)
@@ -34,14 +34,17 @@ static void reset_theme_names(GtkWidget *w);
 static void on_theme_names_selection_changed(GtkTreeSelection *sel,
                                              gpointer data);
 
-void theme_setup_names(GtkWidget *w)
+void theme_setup_tab()
 {
     GtkCellRenderer *render;
     GtkTreeViewColumn *column;
     GtkTreeSelection *select;
+    GtkWidget *w;
 
     mapping = TRUE;
 
+    w = get_widget("theme_names");
+
     /* widget setup */
     theme_store = gtk_list_store_new(2, G_TYPE_STRING, GDK_TYPE_PIXBUF);
     gtk_tree_view_set_model(GTK_TREE_VIEW(w), GTK_TREE_MODEL(theme_store));
@@ -64,7 +67,6 @@ void theme_setup_names(GtkWidget *w)
         ("Preview", render, "pixbuf", 1, NULL);
     gtk_tree_view_append_column(GTK_TREE_VIEW(w), column);
 
-
     /* setup the selection handler */
     select = gtk_tree_view_get_selection(GTK_TREE_VIEW (w));
     gtk_tree_selection_set_mode(select, GTK_SELECTION_SINGLE);
index 182ff8fbba0165fe23f20c52618554a09b95d123..4acc72c3eeb83494c6be6e922532c948207c8c32 100644 (file)
 #ifndef obconf__theme_h
 #define obconf__theme_h
 
-#include <gtk/gtk.h>
+#include <glib.h>
 
-void theme_setup_names (GtkWidget *w);
+void theme_setup_tab();
 
-void theme_install     (const gchar *path);
+void theme_install(const gchar *path);
 
 #endif