--- thewidgetfactory-0.2.1/src/main.c.newwidgets 2006-03-29 11:29:47.000000000 +0200 +++ thewidgetfactory-0.2.1/src/main.c 2006-08-25 17:12:31.000000000 +0200 @@ -26,6 +26,8 @@ GtkListStore *store; GtkCellRenderer *renderer; + GtkTreeIter iter; + int i; #ifdef ENABLE_NLS @@ -45,6 +47,7 @@ * the project. Delete any components that you don't want shown initially. */ window2 = create_window2 (); + pulse_progressbar (lookup_widget (window2, "progressbar5")); gtk_widget_show (window2); combobox1 = lookup_widget (window2, "combobox1"); @@ -69,16 +72,38 @@ gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview1), -1, "Column2", renderer, - "text", 0, NULL); + "text", 1, NULL); + + gtk_tree_view_insert_column_with_attributes (GTK_TREE_VIEW (treeview1), + -1, "Column3", gtk_cell_renderer_toggle_new (), + "active", 2, NULL); + + store = gtk_list_store_new (3, G_TYPE_STRING, G_TYPE_INT, G_TYPE_BOOLEAN); + - store = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING); gtk_tree_view_set_model (GTK_TREE_VIEW (treeview1), GTK_TREE_MODEL (store)); + gtk_tree_view_set_headers_clickable (GTK_TREE_VIEW(treeview1), TRUE); + + gtk_widget_show_all (treeview1); + + for (i = 0 ; i < 30 ; i++) { + gtk_list_store_append (store, &iter); + gtk_list_store_set (store, &iter, 0, g_strdup_printf ("line %d",i), + 1, i, 2, i % 2, -1); + } + + switch_theme = lookup_widget (window2, "switch_theme"); create_themes_menu (switch_theme); + g_timeout_add (100, pulse_progressbar, lookup_widget (window2, "progressbar5")); + + /* grab focus so default button is drawn correctly */ + gtk_widget_grab_focus (comboboxentry1); + gtk_main (); return 0; } --- thewidgetfactory-0.2.1/src/callbacks.c.newwidgets 2006-03-29 11:29:47.000000000 +0200 +++ thewidgetfactory-0.2.1/src/callbacks.c 2006-08-25 17:12:31.000000000 +0200 @@ -193,3 +193,13 @@ gtk_notebook_set_tab_pos (GTK_NOTEBOOK (notebook), GTK_POS_RIGHT); } +gboolean +pulse_progressbar (gpointer data) +{ + + g_return_val_if_fail (GTK_IS_PROGRESS_BAR (data), FALSE); + g_object_ref (data); + gtk_progress_bar_pulse (GTK_PROGRESS_BAR (data)); + g_object_unref (data); + return TRUE; +} --- thewidgetfactory-0.2.1/src/callbacks.h.newwidgets 2006-03-29 11:29:47.000000000 +0200 +++ thewidgetfactory-0.2.1/src/callbacks.h 2006-08-25 17:12:31.000000000 +0200 @@ -76,3 +76,6 @@ void on_right_activate (GtkMenuItem *menuitem, gpointer user_data); + +gboolean +pulse_progressbar (gpointer data); --- thewidgetfactory-0.2.1/twf.glade.newwidgets 2006-03-29 11:29:47.000000000 +0200 +++ thewidgetfactory-0.2.1/twf.glade 2006-08-25 18:29:31.000000000 +0200 @@ -9,6 +9,7 @@ GTK_WINDOW_TOPLEVEL GTK_WIN_POS_NONE False + 800 True False True @@ -17,6 +18,7 @@ GDK_WINDOW_TYPE_HINT_NORMAL GDK_GRAVITY_NORTH_WEST True + False @@ -28,6 +30,8 @@ True + GTK_PACK_DIRECTION_LTR + GTK_PACK_DIRECTION_LTR @@ -441,11 +445,30 @@ + + True + True + checkbutton3 + True + GTK_RELIEF_NORMAL + True + False + True + True + + + 0 + False + False + + + + True False True - checkbutton3 + checkbutton4 True GTK_RELIEF_NORMAL True @@ -465,7 +488,7 @@ True False True - checkbutton4 + checkbutton5 True GTK_RELIEF_NORMAL True @@ -479,6 +502,26 @@ False + + + + True + False + True + checkbutton6 + True + GTK_RELIEF_NORMAL + True + False + True + True + + + 0 + False + False + + 0 @@ -535,15 +578,36 @@ True - False True radiobutton3 True GTK_RELIEF_NORMAL True False + True + True + radiobutton5 + + + 0 + False + False + + + + + + True + False + True + radiobutton4 + True + GTK_RELIEF_NORMAL + True + False False True + radiobutton4 0 @@ -557,14 +621,35 @@ True False True - radiobutton4 + radiobutton5 True GTK_RELIEF_NORMAL True True False True - radiobutton7 + radiobutton4 + + + 0 + False + False + + + + + + True + False + True + radiobutton6 + True + GTK_RELIEF_NORMAL + True + False + True + True + radiobutton4 0 @@ -650,6 +735,24 @@ False + + + + True + True + True + True + button3 + True + GTK_RELIEF_NORMAL + True + + + 0 + False + False + + 0 @@ -852,6 +955,7 @@ GTK_PROGRESS_LEFT_TO_RIGHT 0.5 0.10000000149 + progress bar PANGO_ELLIPSIZE_NONE @@ -877,6 +981,22 @@ + + True + GTK_PROGRESS_RIGHT_TO_LEFT + 0.5 + 0.10000000149 + + PANGO_ELLIPSIZE_NONE + + + 0 + False + False + + + + True True @@ -914,7 +1034,7 @@ 0 - False + True True @@ -1082,7 +1202,7 @@ True True True - False + True False True False @@ -1864,6 +1984,212 @@ + + 1 + True + True + 393 + + + + True + False + 0 + + + + True + 0 + 0.5 + GTK_SHADOW_NONE + + + + True + 0.5 + 0.5 + 1 + 1 + 0 + 0 + 12 + 0 + + + + True + left pane + False + True + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + + + + + 0 + True + True + + + + + True + False + + + + + + True + True + 36 + + + + True + False + 0 + + + + True + 0 + 0.5 + GTK_SHADOW_NONE + + + + True + 0.5 + 0.5 + 1 + 1 + 0 + 0 + 12 + 0 + + + + True + top right pane + False + True + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + + + + + 0 + True + True + + + + + True + False + + + + + + True + False + 0 + + + + True + 0 + 0.5 + GTK_SHADOW_NONE + + + + True + 0.5 + 0.5 + 1 + 1 + 0 + 0 + 12 + 0 + + + + True + bottom right pane + False + True + GTK_JUSTIFY_LEFT + False + False + 0.5 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + + + + + 0 + True + True + + + + + True + True + + + + + True + True + + + + + 0 + True + True + + + + True True