From: Hugo Villeneuve Date: Thu, 21 Nov 2013 04:57:55 +0000 (-0500) Subject: Use macro to set name of sub window X-Git-Tag: v2.0.0~75 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=484f0d39a023a96309f081afa06eb90ef946d158;p=emu8051.git Use macro to set name of sub window --- diff --git a/src/pgmwin.c b/src/pgmwin.c index 0d52dc5..6760b66 100644 --- a/src/pgmwin.c +++ b/src/pgmwin.c @@ -33,6 +33,7 @@ static GtkWidget *pgmlist; +#define LIST_VIEW_NAME "Program" #define DATA_ROWS 100 enum @@ -162,7 +163,7 @@ pgmwin_init(void) GtkListStore *store; GtkTreeSelection *selection; - frame = gtk_frame_new("Program"); + frame = gtk_frame_new(LIST_VIEW_NAME); scrollwin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrollwin), diff --git a/src/regwin.c b/src/regwin.c index e5708f2..b10bfc6 100644 --- a/src/regwin.c +++ b/src/regwin.c @@ -38,6 +38,7 @@ static GtkWidget *reglist; +#define LIST_VIEW_NAME "Registers" #define DATA_ROWS 26 enum @@ -465,7 +466,7 @@ regwin_init(void) GtkWidget *scrollwin; GtkListStore *store; - frame = gtk_frame_new("Registers"); + frame = gtk_frame_new(LIST_VIEW_NAME); scrollwin = gtk_scrolled_window_new(NULL, NULL); gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrollwin),