some changed in tint2conf theme switcher. not yet ready.
git-svn-id: http://tint2.googlecode.com/svn/trunk@406 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
This commit is contained in:
@@ -1,19 +1,45 @@
|
||||
|
||||
#ifndef THEME_VIEW
|
||||
#define THEME_VIEW
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
|
||||
extern GtkListStore *g_store;
|
||||
#define CUSTOM_LIST_TYPE (custom_list_get_type())
|
||||
#define CUSTOM_LIST(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), CUSTOM_LIST_TYPE, CustomList))
|
||||
#define CUSTOM_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CUSTOM_LIST_TYPE, CustomListClass))
|
||||
#define CUSTOM_IS_LIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CUSTOM_LIST_TYPE))
|
||||
#define CUSTOM_IS_LIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CUSTOM_LIST_TYPE))
|
||||
#define CUSTOM_LIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CUSTOM_LIST_TYPE, CustomListClass))
|
||||
|
||||
enum { COL_TEXT = 0, COL_PIX, N_COLUMNS };
|
||||
typedef struct _CustomList CustomList;
|
||||
typedef struct _CustomListClass CustomListClass;
|
||||
|
||||
|
||||
GtkWidget *create_view(void);
|
||||
struct _CustomList
|
||||
{
|
||||
GtkCellRenderer parent;
|
||||
|
||||
void on_changed(GtkWidget *widget, gpointer label);
|
||||
gdouble progress;
|
||||
gchar *nameTheme;
|
||||
gchar *nameSnapshot;
|
||||
GdkPixbuf *pixbuf;
|
||||
};
|
||||
|
||||
struct _CustomListClass
|
||||
{
|
||||
GtkCellRendererClass parent_class;
|
||||
};
|
||||
|
||||
|
||||
// return the type CustomList
|
||||
GType custom_list_get_type();
|
||||
|
||||
// return a new cell renderer instance
|
||||
GtkCellRenderer *custom_list_new();
|
||||
|
||||
void add_to_list(GtkWidget *list, const gchar *str);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user