Mercurial > audlegacy
comparison Plugins/Input/modplug/gui/interface.cpp @ 864:9d393eabf984 trunk
[svn] now modplug uses xmms_show_message for its aboutbox
| author | giacomo |
|---|---|
| date | Fri, 24 Mar 2006 07:02:57 -0800 |
| parents | d60d23b9fe20 |
| children | 5ef13028e42d |
comparison
equal
deleted
inserted
replaced
| 863:25f42f39c44c | 864:9d393eabf984 |
|---|---|
| 15 #include <gtk/gtk.h> | 15 #include <gtk/gtk.h> |
| 16 | 16 |
| 17 #include "callbacks.h" | 17 #include "callbacks.h" |
| 18 #include "interface.h" | 18 #include "interface.h" |
| 19 #include "support.h" | 19 #include "support.h" |
| 20 | |
| 21 GtkWidget* | |
| 22 create_About (void) | |
| 23 { | |
| 24 GtkWidget *About; | |
| 25 GtkWidget *vbox1; | |
| 26 GtkWidget *label1; | |
| 27 GtkWidget *hseparator1; | |
| 28 GtkWidget *hbuttonbox1; | |
| 29 GtkWidget *about_close; | |
| 30 | |
| 31 About = gtk_window_new (GTK_WINDOW_TOPLEVEL); | |
| 32 gtk_object_set_data (GTK_OBJECT (About), "About", About); | |
| 33 gtk_window_set_title (GTK_WINDOW (About), _("About Modplug")); | |
| 34 gtk_window_set_policy (GTK_WINDOW (About), FALSE, FALSE, FALSE); | |
| 35 | |
| 36 vbox1 = gtk_vbox_new (FALSE, 0); | |
| 37 gtk_widget_ref (vbox1); | |
| 38 gtk_object_set_data_full (GTK_OBJECT (About), "vbox1", vbox1, | |
| 39 (GtkDestroyNotify) gtk_widget_unref); | |
| 40 gtk_widget_show (vbox1); | |
| 41 gtk_container_add (GTK_CONTAINER (About), vbox1); | |
| 42 | |
| 43 label1 = gtk_label_new (_("Modplug Input Plugin for Audacious ver" | |
| 44 VERSION | |
| 45 "\nModplug sound engine written by Olivier Lapicque.\nXMMS interface for Modplug by Kenton Varda.\n(c)2000 Olivier Lapicque and Kenton Varda.\nUpdates and Maintainance by Konstanty Bialkowski.\nPorted to BMP by Theofilos Intzoglou.")); | |
| 46 gtk_widget_ref (label1); | |
| 47 gtk_object_set_data_full (GTK_OBJECT (About), "label1", label1, | |
| 48 (GtkDestroyNotify) gtk_widget_unref); | |
| 49 gtk_widget_show (label1); | |
| 50 gtk_box_pack_start (GTK_BOX (vbox1), label1, FALSE, FALSE, 0); | |
| 51 gtk_misc_set_padding (GTK_MISC (label1), 6, 6); | |
| 52 | |
| 53 hseparator1 = gtk_hseparator_new (); | |
| 54 gtk_widget_ref (hseparator1); | |
| 55 gtk_object_set_data_full (GTK_OBJECT (About), "hseparator1", hseparator1, | |
| 56 (GtkDestroyNotify) gtk_widget_unref); | |
| 57 gtk_widget_show (hseparator1); | |
| 58 gtk_box_pack_start (GTK_BOX (vbox1), hseparator1, TRUE, TRUE, 0); | |
| 59 gtk_widget_set_usize (hseparator1, -2, 18); | |
| 60 | |
| 61 hbuttonbox1 = gtk_hbutton_box_new (); | |
| 62 gtk_widget_ref (hbuttonbox1); | |
| 63 gtk_object_set_data_full (GTK_OBJECT (About), "hbuttonbox1", hbuttonbox1, | |
| 64 (GtkDestroyNotify) gtk_widget_unref); | |
| 65 gtk_widget_show (hbuttonbox1); | |
| 66 gtk_box_pack_start (GTK_BOX (vbox1), hbuttonbox1, TRUE, TRUE, 0); | |
| 67 | |
| 68 about_close = gtk_button_new_with_label (_("Close")); | |
| 69 gtk_widget_ref (about_close); | |
| 70 gtk_object_set_data_full (GTK_OBJECT (About), "about_close", about_close, | |
| 71 (GtkDestroyNotify) gtk_widget_unref); | |
| 72 gtk_widget_show (about_close); | |
| 73 gtk_container_add (GTK_CONTAINER (hbuttonbox1), about_close); | |
| 74 GTK_WIDGET_SET_FLAGS (about_close, GTK_CAN_DEFAULT); | |
| 75 | |
| 76 gtk_signal_connect (GTK_OBJECT (About), "delete_event", | |
| 77 GTK_SIGNAL_FUNC (hide_window), | |
| 78 NULL); | |
| 79 gtk_signal_connect (GTK_OBJECT (about_close), "clicked", | |
| 80 GTK_SIGNAL_FUNC (on_about_close_clicked), | |
| 81 NULL); | |
| 82 | |
| 83 return About; | |
| 84 } | |
| 85 | 20 |
| 86 GtkWidget* | 21 GtkWidget* |
| 87 create_Config (void) | 22 create_Config (void) |
| 88 { | 23 { |
| 89 GtkWidget *Config; | 24 GtkWidget *Config; |
