gladish: display about box on help->about
This commit is contained in:
parent
0d7297b1a6
commit
01b9eb20c8
|
@ -628,6 +628,7 @@ The bar represents the percentage of available time used for audio processing (i
|
|||
<widget class="GtkAboutDialog" id="about_win">
|
||||
<property name="destroy_with_parent">True</property>
|
||||
<property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
|
||||
<property name="transient_for">main_win</property>
|
||||
<property name="program_name">LADI Session Handler</property>
|
||||
<property name="website">http://ladish.org/</property>
|
||||
<property name="license" translatable="yes">LADI Session Handler is free software; you can redistribute it and/or modify
|
||||
|
|
|
@ -600,6 +600,14 @@ static void toggle_toolbar(void)
|
|||
}
|
||||
}
|
||||
|
||||
static void show_about(void)
|
||||
{
|
||||
GtkWidget * dialog;
|
||||
dialog = get_glade_widget("about_win");
|
||||
gtk_dialog_run(GTK_DIALOG(dialog));
|
||||
gtk_widget_hide(dialog);
|
||||
}
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
gtk_init(&argc, &argv);
|
||||
|
@ -678,6 +686,7 @@ int main(int argc, char** argv)
|
|||
g_signal_connect(G_OBJECT(g_menu_item_rename_studio), "activate", G_CALLBACK(rename_studio), NULL);
|
||||
g_signal_connect(G_OBJECT(g_menu_item_daemon_exit), "activate", G_CALLBACK(daemon_exit), NULL);
|
||||
g_signal_connect(G_OBJECT(g_menu_item_jack_configure), "activate", G_CALLBACK(jack_configure), NULL);
|
||||
g_signal_connect(G_OBJECT(get_glade_widget("menu_item_help_about")), "activate", G_CALLBACK(show_about), NULL);
|
||||
|
||||
gtk_widget_show(g_main_win);
|
||||
|
||||
|
|
Loading…
Reference in New Issue