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 dcfcfa6..ee17caf 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]
 2002-01-02 [melvin]    0.6.6claws35
 
        * src/gtkspell.[ch]
index e73465c..1328836 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=6
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
 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
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl
index 0cee33e..7ef09d2 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_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"),
        gtkut_button_set_create(&confirm_area,
                                &ok_btn,        _("OK"),
                                &cancel_btn,    _("Cancel"),
index 2a5df2c..f680ece 100644 (file)
@@ -83,14 +83,20 @@ struct _PrefsDialog
 #define SET_NOTEBOOK_LABEL(notebook, str, page_num) \
 { \
        GtkWidget *label; \
 #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 \
        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); \
                 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) \
 }
 
 #define PACK_CHECK_BUTTON(box, chkbtn, label) \