Mercurial > audlegacy
diff src/audacious/ui_new.c @ 4667:2079f04c19e2
Use new Interface API.
| author | William Pitcock <nenolod@atheme.org> |
|---|---|
| date | Sun, 29 Jun 2008 00:45:55 -0500 |
| parents | 46c02b5589c2 |
| children | b71d4f3f3afd |
line wrap: on
line diff
--- a/src/audacious/ui_new.c Sun Jun 29 00:38:08 2008 -0500 +++ b/src/audacious/ui_new.c Sun Jun 29 00:45:55 2008 -0500 @@ -17,10 +17,13 @@ * Audacious or using our public API to be a derived work. */ +#include <glib/gi18n.h> #include <gtk/gtk.h> +#include "interface.h" #include "playlist.h" #include "ui_fileopener.h" +#include "ui_new.h" static GtkWidget *label_prev, *label_current, *label_next; @@ -84,8 +87,8 @@ return label; } -void -ui_initialize() +static gboolean +_ui_initialize(void) { GtkWidget *window; /* the main window */ GtkWidget *vbox; /* the main vertical box */ @@ -142,4 +145,20 @@ gtk_widget_show_all(window); gtk_main(); + + return TRUE; } + +static Interface default_interface = { + .id = "default", + .desc = N_("Default Interface"), + .init = _ui_initialize, +}; + +Interface * +ui_populate_default_interface(void) +{ + interface_register(&default_interface); + + return &default_interface; +}
