[svn r707] Fixed the wrong commentary indentation.
7 #include "hildon-widgets/hildon-program.h"
8 #include "hildon-widgets/hildon-window.h"
11 #include <gmyth/gmyth_recorder.h>
12 #include <gmyth/gmyth_backendinfo.h>
13 #include <gmyth/gmyth_tvchain.h>
14 #include <gmyth/gmyth_remote_util.h>
17 #include "mmyth_tvplayer.h"
20 cb_destroy (GtkWidget * widget, gpointer data)
22 MMythUi *mmyth_ui = (MMythUi *) data;
24 if (mmyth_ui->tvplayer != NULL) {
25 if (mmyth_tvplayer_is_playing (mmyth_ui->tvplayer) )
26 mmyth_tvplayer_stop_playing (mmyth_ui->tvplayer);
29 mmyth_ui_finalize (mmyth_ui);
36 debug_error_func( const gchar*log_domain, GLogLevelFlags log_level, const gchar *message,
40 /* leave this with NO print out messages, once you need to disable debug messages! */
41 //g_print ( "[%s] DEBUG messages disabled!\n", __FUNCTION__ );
46 main (gint argc, gchar * argv[])
51 HildonProgram *program = NULL;
58 gtk_init (&argc, &argv);
59 gst_init (&argc, &argv);
61 g_log_set_default_handler( debug_error_func, NULL );
64 /* Init libmmyth context */
66 #ifndef MAEMO_PLATFORM
67 /* create the main window */
68 window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
69 gtk_widget_set_size_request (window, MAIN_WINDOW_WIDTH, MAIN_WINDOW_HEIGHT);
70 gtk_window_set_title (GTK_WINDOW (window), "Mythtv Frontend");
72 /* Creating Hildonized main view */
73 program = HILDON_PROGRAM(hildon_program_get_instance());
74 window = hildon_window_new();
76 //g_signal_connect(G_OBJECT(window), "delete_event", gtk_main_quit, NULL);
78 hildon_program_add_window(program, HILDON_WINDOW (window));
79 g_set_application_name("Maemo Mythtv");
82 /* Initializes MMyth Widgets */
84 mmyth_ui = mmyth_ui_initialize (program, window);
86 mmyth_ui = mmyth_ui_initialize (window);
89 //mmyth_ui->loop = g_main_loop_new (NULL, FALSE);
91 /* Connect destroy signal handling */
92 g_signal_connect (window, "destroy", G_CALLBACK (cb_destroy), mmyth_ui);
94 /* Shows main window and start gtk loop */
95 gtk_widget_show (window);