]> git.sur5r.net Git - glabels/commitdiff
Created mnemonics for spacing and border magic numbers.
authorJim Evins <evins@snaught.com>
Tue, 17 Sep 2002 01:57:40 +0000 (01:57 +0000)
committerJim Evins <evins@snaught.com>
Tue, 17 Sep 2002 01:57:40 +0000 (01:57 +0000)
git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@120 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/src/alert.c

index 9c2792cabe4bc4b15ea6ac612ee6bbe906703a43..33dbfcacb2f432d355d03b84dce98e5fb487947b 100644 (file)
@@ -26,6 +26,8 @@
 
 #include "alert.h"
 
+#define HIG_ALERT_BORDER   6
+#define HIG_ALERT_SPACING 12
 
 \f
 /****************************************************************************/
@@ -47,7 +49,7 @@ GtkWidget* gl_alert_dialog_new      (GtkWindow      *parent,
        dialog = gtk_dialog_new_with_buttons ("", parent, flags, NULL);
 
        /* Create HBOX */
-       hbox = gtk_hbox_new (FALSE, 12);
+       hbox = gtk_hbox_new (FALSE, HIG_ALERT_SPACING);
        gtk_box_pack_start (GTK_BOX(GTK_DIALOG(dialog)->vbox),
                            hbox, FALSE, FALSE, 0);
 
@@ -89,15 +91,17 @@ GtkWidget* gl_alert_dialog_new      (GtkWindow      *parent,
 
        /* Adjust dialog properties */
        gtk_window_set_title (GTK_WINDOW(dialog), "");
-       gtk_container_set_border_width (GTK_CONTAINER(dialog), 6);
+       gtk_container_set_border_width (GTK_CONTAINER(dialog),
+                                       HIG_ALERT_BORDER);
        gtk_dialog_set_has_separator (GTK_DIALOG(dialog), FALSE);
 
        /* Adjust VBOX properties */
-       gtk_box_set_spacing (GTK_BOX(GTK_DIALOG(dialog)->vbox), 12);
+       gtk_box_set_spacing (GTK_BOX(GTK_DIALOG(dialog)->vbox),
+                            HIG_ALERT_SPACING);
 
        /* Adjust HBOX properties */
-       gtk_box_set_spacing (GTK_BOX(hbox), 12);
-       gtk_container_set_border_width (GTK_CONTAINER(hbox), 6);
+       gtk_box_set_spacing (GTK_BOX(hbox), HIG_ALERT_SPACING);
+       gtk_container_set_border_width (GTK_CONTAINER(hbox), HIG_ALERT_BORDER);
 
        /* Adjust IMAGE properties */
        gtk_misc_set_alignment (GTK_MISC(image), 0.5, 0.0);