Skip to content

Commit 2e109a5

Browse files
committed
halscope: Add channel number in title for 'Select Channel Source' dialog
Adding the information in the title to make the information message redundant. This is valuable space that we would rather use to display signals.
1 parent effdfe1 commit 2e109a5

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/hal/utils/scope_vert.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,7 @@ static gboolean dialog_select_source(int chan_num)
918918
char *name[HAL_NAME_LEN + 1];
919919
char signal_name[HAL_NAME_LEN + 1];
920920
char msg[BUFLEN];
921+
char title[BUFLEN];
921922
int next, n, tab, retval;
922923
int row, match_tab, match_row;
923924

@@ -926,11 +927,12 @@ static gboolean dialog_select_source(int chan_num)
926927

927928
vert->chan_num = chan_num;
928929

930+
snprintf(title, BUFLEN - 1, _("Select Channel %d Source"), chan_num);
929931
snprintf(msg, BUFLEN - 1, _("Select a pin, signal, or parameter\n"
930932
"as the source for channel %d."), chan_num);
931933

932934
/* create dialog window, disable resizing, set title, size and position */
933-
dialog = gtk_dialog_new_with_buttons(_("Select Channel Source"),
935+
dialog = gtk_dialog_new_with_buttons(title,
934936
NULL, GTK_DIALOG_MODAL,
935937
_("_OK"), GTK_RESPONSE_ACCEPT,
936938
_("_Cancel"), GTK_RESPONSE_CANCEL,

0 commit comments

Comments
 (0)