Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

switch channel by using favorites



Thomas Eichenhofer writes:
 > [1  <text/plain; iso-8859-1 (quoted-printable)>]
 > Hi,
 > after little problems while compiling, driver version 0.05 is working fine for me now.
 > Any body else got problem when changing channels using favorites?
 > Switching channels work for me with "dvb info", but channel buttons up/down and favorites DO NOT work.

Yes, I noticed that, I fixed it last week. Here is the diff for
graphs.cc:
21a22
> #ifdef DVB_TUNER
22a24
> #endif
30c32
< static GtkWidget *clist1, *audiomenu, *menubar;
---
> static GtkWidget *clist1, *menubar;
32a35,36
> #ifdef DVB_TUNER
> static GtkWidget *audiomenu;
36a41
> #endif
41a47
> static int fdescr;
42a49
> #ifdef DVB_TUNER
52,53d58
< 
< static int fdescr;
54a60
> #endif
65a72
> #ifdef DVB_TUNER
95c102
< 
---
> #endif
109a117,118
> #ifdef DVB_TUNER
> 
128a138,155
> void save_dvb(GtkWidget * w, gpointer data){
> 	ofstream dvbout;
> 	char path[80];
> 	const char *home = getenv("HOME");
> 	const char *file = ".dvbrc";
> 	
> 	strncpy(path, home, STRSIZE);
> 	strncat(path, "/", STRSIZE);
> 	strncat(path, file, STRSIZE);
> 	dvbout.open(path);
> 	if (dvbout) {
> 		status_message("Saving .dvbrc\n");
> 		dvbout << dvb;
> 	}
> 	
> }
> 
> 
171a199
> #endif
205a234
> #ifdef DVB_TUNER
212,214c241
< 		        set_audio_menu(&dvb.chans[k]);
< 		else
< 		        set_audio_menu(NULL);
---
> 		        set_channel_dvb(GTK_WIDGET(gwidget),k);
217a245
> #endif
218a247
> #ifdef DVB_TUNER
219a249
> #endif
221a252,253
> #ifdef DVB_TUNER
> 
244c276
< 			     strlen(dvb.lnbs[i].name))) {
---
> 			     1+strlen(dvb.lnbs[i].name))) {
255c287
< 					strlen(name));
---
> 					strlen(name)+1);
269c301
< 			strncpy(name, entry, strlen(entry));
---
> 			strncpy(name, entry, strlen(entry)+1);
337c369,371
< 	items = g_list_append(items, "new lnb");
---
> 
> 	char *nlnb = "new lnb"; // for gcc 2.95 
> 	items = g_list_append(items,nlnb);
339c373
< 		if (dvb.lnbs[i].name[0])
---
> 		if (dvb.lnbs[i].name[0] != 0)
344a379
> 			strncpy(dvb.lnbs[i].name,name,strlen(name)+1);
405a441
> #endif
466a503,504
> #else
> 	if (!dev) dev = "/dev/video";
506,507c544,545
< 
< 	menuitem = CreateMenuItem(menu, "Load", "^l",
---
> #ifdef DVB_TUNER
> 	menuitem = CreateMenuItem(menu, "Set Play File", "^l",
511c549
< 	menuitem = CreateMenuItem(menu, "Save", "^s",
---
> 	menuitem = CreateMenuItem(menu, "Set Record File", "^s",
514a553,556
> 	menuitem = CreateMenuItem(menu, "Save DVB", "^d",
> 				  "Save .dvbrc",
> 				  GTK_SIGNAL_FUNC(save_dvb), NULL);
> #endif
520a563
> #ifdef DVB_TUNER
532c575
< 
---
> #endif
541a585
> #ifdef DVB_TUNER
543c587
< 
---
> #endif
593a638
> #ifdef DVB_TUNER
601,603c646
< 	if (chlist.NumChan())
< 		set_channel(chlist(0));
< 
---
> #endif
610a654,658
> 	if (chlist.NumChan()){
> 	        set_channel(chlist(0)); //once should be enough
> 		set_channel(chlist(0)); // but the driver doesn`t get it !!
> 	}
> 
702a751
> #ifdef DVB_TUNER
738a788
> #endif
790a841,842
> #ifdef DVB_TUNER
> 
802a855
> #endif
819a873
> #ifdef DVB_TUNER
864c918
< 
---
> #endif
1257a1312
> #ifdef DVB_TUNER
1328a1384
> 
1331c1387
< 
---
> 	
1352,1353c1408,1410
< 		widget_destroy(window1);
< 	}
---
> 	} 
> 	widget_destroy(window1);
> 	cout << *lnb << endl;
1554a1612
> #endif
1662c1720
< 
---
> #ifdef DVB_TUNER
2194a2253
> #endif


Home | Main Index | Thread Index