Added popup menu for common preferences and account preferences
authorMelvin Hadasht <melvin.hadasht@free.fr>
Thu, 3 Jan 2002 00:23:17 +0000 (00:23 +0000)
committerMelvin Hadasht <melvin.hadasht@free.fr>
Thu, 3 Jan 2002 00:23:17 +0000 (00:23 +0000)
(right click on tab displays a menu of all tabs.)

ChangeLog.claws
configure.in
src/prefs.c
src/prefs.h

index dcfcfa6b59b981e31a4a1bcf3d96e604e8a565e0..ee17cafe6d88d3786d4d9b86b29430c7c665f15f 100644 (file)
@@ -1,3 +1,10 @@
+2002-01-03 [melvin]    0.6.6claws36
+       
+       * src/prefs.[ch]
+               Added popup menu for common preferences and
+               account preferences (right click on tab displays
+                               a menu of all tabs.)
+
 2002-01-02 [melvin]    0.6.6claws35
 
        * src/gtkspell.[ch]
index e73465cca499e776fc2cb85a28b7b3e7968231ac..132883679a015f993dd0a0af30dc0ca9ec88c5fc 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=6
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws35
+EXTRA_VERSION=claws36
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl
index 0cee33eb0c208983e3c7698f5c6a5a875e10c55b..7ef09d28f6f5487adb5086c8ec6c01d1659c349c 100644 (file)
@@ -468,7 +468,9 @@ void prefs_dialog_create(PrefsDialog *dialog)
        gtk_container_set_border_width (GTK_CONTAINER (notebook), 2);
        /* GTK_WIDGET_UNSET_FLAGS (notebook, GTK_CAN_FOCUS); */
        gtk_notebook_set_scrollable (GTK_NOTEBOOK (notebook), TRUE);
-
+       
+       gtk_notebook_popup_enable (GTK_NOTEBOOK (notebook));
+       
        gtkut_button_set_create(&confirm_area,
                                &ok_btn,        _("OK"),
                                &cancel_btn,    _("Cancel"),
index 2a5df2ce7e6b6fee41e65d6ee15c7f1da65ee9e0..f680ecef9c1886577192b726dbc6df825d03f7a0 100644 (file)
@@ -83,14 +83,20 @@ struct _PrefsDialog
 #define SET_NOTEBOOK_LABEL(notebook, str, page_num) \
 { \
        GtkWidget *label; \
- \
+       gint i = page_num;      \
+  \
        label = gtk_label_new (str); \
        gtk_widget_show (label); \
        gtk_notebook_set_tab_label \
                (GTK_NOTEBOOK (notebook), \
                 gtk_notebook_get_nth_page \
-                       (GTK_NOTEBOOK (notebook), page_num), \
+                       (GTK_NOTEBOOK (notebook), i), \
                 label); \
+       gtk_notebook_set_menu_label_text \
+               (GTK_NOTEBOOK (notebook), \
+                gtk_notebook_get_nth_page \
+                       (GTK_NOTEBOOK (notebook), i), \
+                str);\
 }
 
 #define PACK_CHECK_BUTTON(box, chkbtn, label) \