maemo-ui/src/mmyth_epg_grid_widget.c
branchtrunk
changeset 221 b250ee0438a2
parent 20 7174e23f7617
child 244 c88244670b08
     1.1 --- a/maemo-ui/src/mmyth_epg_grid_widget.c	Thu Sep 28 16:02:14 2006 +0100
     1.2 +++ b/maemo-ui/src/mmyth_epg_grid_widget.c	Fri Dec 15 00:21:57 2006 +0000
     1.3 @@ -37,6 +37,8 @@
     1.4      GList * channel_list;
     1.5      
     1.6      GMythEPG *mmyth_epg;
     1.7 +
     1.8 +    GMythBackendInfo *backend_info;
     1.9      
    1.10      gint DISPLAY_CHANS;
    1.11  };
    1.12 @@ -103,10 +105,13 @@
    1.13      private->current_end_time = time(&cur_time) + 10800;   
    1.14      
    1.15      private->DISPLAY_CHANS = MAX_DISPLAY_CHANS;
    1.16 -    
    1.17 +
    1.18 +    private->backend_info = gmyth_backend_info_new_full ( "192.168.1.109", "mythtv",
    1.19 +    	"mythtv", "mythconverg", 6543 );
    1.20 +
    1.21      // TODO: Close the epg and unref it in dispose call
    1.22      private->mmyth_epg = gmyth_epg_new ();
    1.23 -    if (!gmyth_epg_connect (private->mmyth_epg)) {
    1.24 +    if (!gmyth_epg_connect (private->mmyth_epg, private->backend_info)) {
    1.25      	g_warning ("[%s] Could not connect mysql handler to db", __FUNCTION__);
    1.26      	g_object_unref (private->mmyth_epg);
    1.27      	private->mmyth_epg = NULL;