From 484f0d39a023a96309f081afa06eb90ef946d158 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Wed, 20 Nov 2013 23:57:55 -0500 Subject: [PATCH] Use macro to set name of sub window --- src/pgmwin.c | 3 ++- src/regwin.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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), -- 2.20.1