replace Up/Down pixmaps with text
authorPaul Mangan <paul@claws-mail.org>
Sun, 11 Aug 2002 13:16:51 +0000 (13:16 +0000)
committerPaul Mangan <paul@claws-mail.org>
Sun, 11 Aug 2002 13:16:51 +0000 (13:16 +0000)
ChangeLog.claws
configure.in
src/prefs_toolbar.c

index 6b97456..2404844 100644 (file)
@@ -1,3 +1,9 @@
+2002-08-11 [paul]      0.8.1claws50
+
+       * src/prefs_toolbar.c
+               replace Up/Down arrow pixmaps with text to be
+               consistent across icon themes
+
 2002-08-11 [paul]      0.8.1claws49
 
        * src/prefs_common.c
index ccba1bb..6c787f4 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=8
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws49
+EXTRA_VERSION=claws50
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index d851018..fa7b747 100644 (file)
@@ -641,16 +641,17 @@ static void prefs_toolbar_create(void)
        GtkWidget *label_file;
        GtkWidget *label_text;
        GtkWidget *label_action;
-       GtkWidget *toolbar;
+
+       GtkWidget *btn_vbox;
        GtkWidget *up_btn;
        GtkWidget *down_btn;
-       GtkWidget *icon_wid;
-       gchar *titles[N_DISPLAYED_ITEMS_COLS];
 
        GtkWidget *confirm_area;
        GtkWidget *ok_btn;
        GtkWidget *cancel_btn;
 
+       gchar *titles[N_DISPLAYED_ITEMS_COLS];
+
        debug_print(_("Creating custom toolbar window...\n"));
 
        window = gtk_window_new (GTK_WINDOW_DIALOG);
@@ -790,25 +791,17 @@ static void prefs_toolbar_create(void)
        gtk_clist_column_titles_show (GTK_CLIST (clist_set));
        gtk_widget_set_usize (clist_set, 225, 120);
 
-       toolbar = gtk_toolbar_new (GTK_ORIENTATION_VERTICAL, GTK_TOOLBAR_BOTH);
-       gtk_box_pack_start (GTK_BOX (hbox_bottom), toolbar, FALSE, FALSE, 0);
-       gtk_container_set_border_width (GTK_CONTAINER (toolbar), 5);
-
-       icon_wid = stock_pixmap_widget(hbox_bottom, STOCK_PIXMAP_UP_ARROW);
-       up_btn = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
-                                            GTK_TOOLBAR_CHILD_BUTTON,
-                                            NULL,
-                                            NULL,
-                                            _("Up"), NULL,
-                                            icon_wid, NULL, NULL);
-
-       icon_wid = stock_pixmap_widget(hbox_bottom, STOCK_PIXMAP_DOWN_ARROW);
-       down_btn = gtk_toolbar_append_element (GTK_TOOLBAR (toolbar),
-                                              GTK_TOOLBAR_CHILD_BUTTON,
-                                              NULL,
-                                              NULL,
-                                              _("Down"), NULL,
-                                              icon_wid, NULL, NULL);
+       btn_vbox = gtk_vbox_new (FALSE, 8);
+       gtk_widget_show (btn_vbox);
+       gtk_box_pack_start (GTK_BOX (hbox_bottom), btn_vbox, FALSE, FALSE, 5);
+
+       up_btn = gtk_button_new_with_label (_("Up"));
+       gtk_widget_show (up_btn);
+       gtk_box_pack_start (GTK_BOX (btn_vbox), up_btn, FALSE, FALSE, 2);
+
+       down_btn = gtk_button_new_with_label (_("Down"));
+       gtk_widget_show (down_btn);
+       gtk_box_pack_start (GTK_BOX (btn_vbox), down_btn, FALSE, FALSE, 0);
 
        gtkut_button_set_create(&confirm_area, &ok_btn, _("OK"),
                                &cancel_btn, _("Cancel"), NULL, NULL);
@@ -817,26 +810,22 @@ static void prefs_toolbar_create(void)
        gtk_widget_grab_default (ok_btn);
 
        gtk_signal_connect(GTK_OBJECT(ok_btn), "clicked",
-                          GTK_SIGNAL_FUNC(prefs_toolbar_ok), 
-                          NULL);
+                          GTK_SIGNAL_FUNC(prefs_toolbar_ok), NULL);
        gtk_signal_connect(GTK_OBJECT(cancel_btn), "clicked",
-                          GTK_SIGNAL_FUNC(prefs_toolbar_cancel), 
-                          NULL);
+                          GTK_SIGNAL_FUNC(prefs_toolbar_cancel), NULL);
        gtk_signal_connect(GTK_OBJECT (clist_set), "select_row",
                           GTK_SIGNAL_FUNC (prefs_toolbar_select_row_set),
                           NULL);
        gtk_signal_connect(GTK_OBJECT (clist_icons), "select_row",
                           GTK_SIGNAL_FUNC (prefs_toolbar_select_row_icons),
                           NULL);
-       gtk_signal_connect(GTK_OBJECT (down_btn), "clicked",
-                          GTK_SIGNAL_FUNC (prefs_toolbar_down),
-                          NULL);
-       gtk_signal_connect(GTK_OBJECT (up_btn), "clicked",
-                          GTK_SIGNAL_FUNC (prefs_toolbar_up),
-                          NULL);
        gtk_signal_connect(GTK_OBJECT(combo_list), "selection-changed",
                           GTK_SIGNAL_FUNC(prefs_toolbar_selection_changed),
                           NULL);
+       gtk_signal_connect(GTK_OBJECT (up_btn), "clicked",
+                          GTK_SIGNAL_FUNC (prefs_toolbar_up), NULL);
+       gtk_signal_connect(GTK_OBJECT (down_btn), "clicked",
+                          GTK_SIGNAL_FUNC (prefs_toolbar_down), NULL);
        
        mtoolbar.window           = window;
        mtoolbar.clist_icons      = clist_icons;