+/* -*- 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
g_free(s);
}
- theme_setup_names(get_widget("theme_names"));
-
+ theme_setup_tab();
appearance_setup_tab();
behavior_setup_tab();
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));
("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);
#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