From 13e4337ed16d3c8b2b41e2fa4bb3950ff0aa60d1 Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Tue, 17 Sep 2002 01:57:40 +0000 Subject: [PATCH] Created mnemonics for spacing and border magic numbers. git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@120 f5e0f49d-192f-0410-a22d-a8d8700d0965 --- glabels2/src/alert.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/glabels2/src/alert.c b/glabels2/src/alert.c index 9c2792ca..33dbfcac 100644 --- a/glabels2/src/alert.c +++ b/glabels2/src/alert.c @@ -26,6 +26,8 @@ #include "alert.h" +#define HIG_ALERT_BORDER 6 +#define HIG_ALERT_SPACING 12 /****************************************************************************/ @@ -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); -- 2.39.5