Fixed truncated message.
authorMatch Grun <match@dimensional.com>
Tue, 3 Jul 2001 00:37:12 +0000 (00:37 +0000)
committerMatch Grun <match@dimensional.com>
Tue, 3 Jul 2001 00:37:12 +0000 (00:37 +0000)
src/alertpanel.c

index 9fa164771c30a0136c74b1f404e17a68bb0da95e..44b4f6c86ebaf3e225fc7b75cb2ad2d48fb4ecf3 100644 (file)
@@ -206,10 +206,11 @@ static void alertpanel_create(const gchar *title,
                           hbox, TRUE, TRUE, 16);
 
        /* title label */
-       /* pixmapwid = create_pixmapwid(dialog, GNUstep_xpm); */
-       /* gtk_box_pack_start(GTK_BOX(hbox), pixmapwid, FALSE, FALSE, 16); */
+       //pixmapwid = create_pixmapwid(dialog, GNUstep_xpm);
+       //gtk_box_pack_start(GTK_BOX(hbox), pixmapwid, FALSE, FALSE, 16);
        label = gtk_label_new(title);
-       gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 16);
+       gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 16);
+       gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
        style = gtk_style_copy(gtk_widget_get_style(label));
        if (!titlefont)
                titlefont = gdk_fontset_load(TITLE_FONT);
@@ -228,6 +229,7 @@ static void alertpanel_create(const gchar *title,
 
        /* message label */
        label = gtk_label_new(message);
+       gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5);
        gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 32);
        gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT);