* src/action.c
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Sat, 27 Sep 2003 21:45:06 +0000 (21:45 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Sat, 27 Sep 2003 21:45:06 +0000 (21:45 +0000)
o make progress bar not fill/expand when resizing dialog
o use default fixed text font for actions output

ChangeLog.claws
configure.ac
src/action.c

index 95a1778..907acf0 100644 (file)
@@ -1,3 +1,9 @@
+2003-09-27 [alfons]    0.9.5claws34
+
+       * src/action.c
+               o make progress bar not fill/expand when resizing dialog
+               o use default fixed text font for actions output
+
 2003-09-27 [paul]      0.9.5claws33
 
        * src/prefs_common.[ch]
index bf78744..0a59e98 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=33
+EXTRA_VERSION=34
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index a6171c9..6f76901 100644 (file)
@@ -1072,7 +1072,10 @@ static void update_io_dialog(Children *children)
                GtkWidget *text = children->text;
                gchar *caption;
                ChildInfo *child_info;
+               GdkFont *font;
 
+               font = gtk_object_get_data(GTK_OBJECT(children->dialog), 
+                                          "s_txtfont");
                gtk_widget_show(children->scrolledwin);
                gtk_text_freeze(GTK_TEXT(text));
                gtk_text_set_point(GTK_TEXT(text), 0);
@@ -1089,9 +1092,9 @@ static void update_io_dialog(Children *children)
                                        (_("--- Ended: %s\n"),
                                         child_info->cmd);
 
-                       gtk_text_insert(GTK_TEXT(text), NULL, NULL, NULL,
+                       gtk_text_insert(GTK_TEXT(text), font, NULL, NULL,
                                        caption, -1);
-                       gtk_text_insert(GTK_TEXT(text), NULL, NULL, NULL,
+                       gtk_text_insert(GTK_TEXT(text), font, NULL, NULL,
                                        child_info->output->str, -1);
                        g_free(caption);
                        child_info->new_out = FALSE;
@@ -1114,6 +1117,7 @@ static void create_io_dialog(Children *children)
        GtkWidget *progress_bar = NULL;
        GtkWidget *abort_button;
        GtkWidget *close_button;
+       GdkFont   *output_font;
 
        debug_print("Creating action IO dialog\n");
 
@@ -1193,7 +1197,7 @@ static void create_io_dialog(Children *children)
                                children->initial_nb -children->nb,
                                0.0, children->initial_nb);
 
-               gtk_box_pack_start(GTK_BOX(vbox), progress_bar, TRUE, TRUE, 0);
+               gtk_box_pack_start(GTK_BOX(vbox), progress_bar, FALSE, FALSE, 0);
                gtk_widget_show(progress_bar);
        }
 
@@ -1219,6 +1223,10 @@ static void create_io_dialog(Children *children)
        children->abort_btn    = abort_button;
        children->close_btn    = close_button;
 
+       output_font = gtkut_font_load_from_fontset(prefs_common.textfont);
+       gtk_object_set_data_full(GTK_OBJECT(dialog), "s_txtfont",
+                                output_font, 
+                                (GtkDestroyNotify)gdk_font_unref); 
        gtk_widget_show(dialog);
 }