Skip to content

Commit 6505648

Browse files
committed
kconfig: gconf: show GTK version in About dialog
Likewise xconfig, it is useful to display the GTK version in the About dialog. Signed-off-by: Masahiro Yamada <[email protected]> Acked-by: Randy Dunlap <[email protected]> Tested-by: Randy Dunlap <[email protected]>
1 parent bfa7375 commit 6505648

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/kconfig/gconf.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,11 @@ static void on_about1_activate(GtkMenuItem *menuitem, gpointer user_data)
525525
dialog = gtk_message_dialog_new(GTK_WINDOW(main_wnd),
526526
GTK_DIALOG_DESTROY_WITH_PARENT,
527527
GTK_MESSAGE_INFO,
528-
GTK_BUTTONS_CLOSE, "%s", about_text);
528+
GTK_BUTTONS_CLOSE, "%s\nGTK version: %d.%d.%d",
529+
about_text,
530+
gtk_get_major_version(),
531+
gtk_get_minor_version(),
532+
gtk_get_micro_version());
529533
gtk_dialog_run(GTK_DIALOG(dialog));
530534
gtk_widget_destroy(dialog);
531535
}

0 commit comments

Comments
 (0)