how to use gtk ??????????????????????????????????
- From: ole hasselbalch <olehasselbalch gmail com>
- To: gnome-doc-list gnome org
- Subject: how to use gtk ??????????????????????????????????
- Date: Sun, 05 Apr 2015 09:03:27 -0000
Dear friends. I am born in 1936 and therefor i learn slowly !!!!! HI HI
I have made a little program in c using terminal. This program is working and i must say i am a litle prowed hi hi
I have made an emty window with gtk but but How shall i put my input in this window ???
Must say thats difficult for me to understand
#include <gtk/gtk.h>
int
main (int argc,
char *argv[])
{
GtkWidget *window;
/* Initialise GTK+ passing to it all command line arguments */
gtk_init (&argc, &argv);
/* create a new window, set values */
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_title (GTK_WINDOW (window), "Dette er bare et tomt vindue");
/* set the size of the window */
gtk_widget_set_size_request (GTK_WIDGET (window), 200, 200);
/* connect the windows "destroy" event */
g_signal_connect (G_OBJECT (window), "destroy",
G_CALLBACK (gtk_main_quit), NULL);
/* set the window as visible */
gtk_widget_show (window);
/* run the GTK+ main loop */
gtk_main ();
return 0;
}
This program here can i compile and i can se an emty window but how do i make input with my terminal program ?? I am radioamateur and have made this program for my terminal
writing gcc freq.c -o freq i get following skærmbillede fra 2015-03-26 12:19:21.png
ole ole1:~/Skrivebord$ gcc freq.c -o freq
ole ole1:~/Skrivebord$ sudo ./freq
[sudo] password for ole:
Program Started-
Port open
Portout= 128
------
Press:
"f" - to input frequency,
"q" - to exit program,
<space> - to toggle transmitterf
Input frequency as 144.000 in Step 25KHz.: 144.625
Portout= 153
------
You se
144.000 = portoutput 128
144.625=portoutput 153
146.000=portoutput 208
80 channels every 25000 HZ
This program want i working with gtk HOW
Can i get some hints ???????????????? I will be very very glad
I hope somebody can help me
Happy Easter from Ole OZ6OH radioamateur in Denmark
Attachment:
Skærmbillede fra 2015-03-26 12:19:21.png
Description: PNG image
Attachment:
freq.c
Description: Text Data
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]