11 Oct 2003 kristian   » (Master)

Still busy with university and jobs blah blah blah.

Did manage to get all my new objects/widgets in GTK+ HEAD and write API doc comments for them. Which I am happy about. I also got some good feedback from mpesenti, who is the first victim to try to use GtkComboBoxEntry and GtkEntryCompletion. He also had a lot of good feedback when I was trying to design the entry combo/completion part of the combo box/option menu replacement, which I really appreciate. I think we made the completion stuff rock.

Since all my new stuff is in, I hope to get back to TreeView. I have too many plans for TreeView for 2.4. I need to make a good list first and punt a lot.

One of the reasons why GtkComboBox is cooler than GtkOptionMenu :) :

!  1 files changed, 4 insertions(+), 14 deletions(-)
Index: textview.c
RCS file: /cvs/gnome/gtk+/demos/gtk-demo/textview.c,v
retrieving revision 1.18
diff -u -p -r1.18 textview.c
--- textview.c  5 Aug 2003 19:16:01 -0000       1.18
+++ textview.c  10 Oct 2003 17:15:50 -0000
@@ -399,21 +399,11 @@ attach_widgets (GtkTextView *text_view)
       else if (i == 1)
-          GtkWidget *menu_item;
-          GtkWidget *menu;
+          widget = gtk_combo_box_new_text ();
-          menu = gtk_menu_new ();
-          widget = gtk_option_menu_new ();
-          menu_item = gtk_menu_item_new_with_label ("Option 1");
-          gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
-          menu_item = gtk_menu_item_new_with_label ("Option 2");
-          gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
-          menu_item = gtk_menu_item_new_with_label ("Option 3");
-          gtk_menu_shell_append (GTK_MENU_SHELL (menu), menu_item);
-          gtk_option_menu_set_menu (GTK_OPTION_MENU (widget), menu);
+          gtk_combo_box_append_text (GTK_COMBO_BOX (widget), "Option 1");
+          gtk_combo_box_append_text (GTK_COMBO_BOX (widget), "Option 2");
+          gtk_combo_box_append_text (GTK_COMBO_BOX (widget), "Option 3");

[edit: I forgot some google-fu for Jonathan Blandford.]

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!