Commit bc5cd184 authored by Ole Aamot's avatar Ole Aamot

Add gingerblue-app.c

Add gingerblue-config.c
parent 69d837c8
/* $Id$
Copyright (C) 2020 Ole Aamot Software
Author(s): Ole Aamot <ole@gnome.org>
License: GNU GPL version 3
Version: 0.2.0 (2020-06-16)
Website: http://www.gingerblue.org/
*/
#include <gtk/gtk.h>
#include <gst/gst.h>
#include "gingerblue.h"
int main (gint argc, gchar *argv[]) {
GtkWindow *gingerblue_window;
gtk_init (&argc, &argv);
gingerblue_window = main_config ("LOCATIONS");
gingerblue_main_loop (gingerblue_window);
gtk_widget_show_all (gingerblue_window);
gst_init(&argc, &argc);
gtk_main_loop();
return (0);
}
/* $Id$
Copyright (C) 2020 Ole Aamot Software
Author(s): Ole Aamot <ole@gnome.org>
License: GNU GPL version 3
Version: 0.2.0 (2020-06-16)
Website: http://www.gingerblue.org/
*/
#include <gtk/gtk.h>
#include <gst/gst.h>
#include "gingerblue.h"
GtkWidget *main_config (gchar *location_data) {
GingerblueData *Gingerblue;
GtkButton *AddStudioButton;
GtkButton *NewStudioButton;
GtkVBox *Studio;
GtkList *Location;
GtkContainer *Container;
GtkWindow *gingerblue;
gingerblue = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_title (GTK_WINDOW(gingerblue), "Gingerblue Music Studio");
AddStudioButton = gtk_button_new_with_label("Add Studio");
NewStudioButton = gtk_button_new_with_label("New Studio");
Studio = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8);
Location = gtk_list_box_new ();
gtk_container_add (GTK_WINDOW(gingerblue), GTK_CONTAINER (Studio));
gtk_box_pack_start (GTK_BOX(Studio), GTK_BUTTON(AddStudioButton), TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX(Studio), GTK_LIST_BOX(Location), TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX(Studio), GTK_BUTTON(NewStudioButton), TRUE, TRUE, 0);
gtk_widget_show_all (GTK_WIDGET(gingerblue));
return (GtkWidget *) gingerblue;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment