How to create a custom signal and send it between windows?

2005-09-10 Thread Edward Yang
Sorry if it is silly question. I want to create a custom signal and send it between two windows. Is it possible? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

[NEWBIE] How to put text onto system-wide clipboard?

2005-04-10 Thread Edward Yang
What I want to do is put user selected text onto the (a?) system-wide clipboard. How to do this using GTK+? BTW, I come from Windows world. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-

[NEWBIE] Setting clipboard text

2005-04-09 Thread Edward Yang
I am current using the following code to store text to the default clipboard: GtkClipboard* clip = gtk_get_clipboard_for_display(gdk_get_display_default(), GDK_SECTION_CLIPBOARD); gtk_clipboard_set_text(clip, string, -1); I wonder if there is a function that does the job in one stroke. __

[NEWBIE]How to show popup given a GdkEventButton object?

2005-04-09 Thread Edward Yang
How to turn the x, y members to screen coordinates so that I can show a popup menu? BTW, it there an easy way to show a popup menu? I looke an open source editor, but the code seems very complex. ___ gtk-app-devel-list mailing list gtk-app-devel-list@

Re: Does gtk have classes to read/write conf file?

2005-02-22 Thread Edward Yang
David Necas (Yeti) wrote: On Tue, Feb 22, 2005 at 10:18:52PM +0800, Edward Yang wrote: On Windows platform, there is a type of file called INI file (initialization file) that is very similar with conf file; INI file has sections. I want to know if there are also classes/APIs to manipulate

Does gtk have classes to read/write conf file?

2005-02-22 Thread Edward Yang
I am very new to gtk programming and, linux programming. I want to know if there are classes in gtk that can read/write conf files? On Windows platform, there is a type of file called INI file (initialization file) that is very similar with conf file; INI file has sections. I want to know if th

Newbie: glade-2 generated code differ with tutorial

2005-02-03 Thread Edward Yang
I am new to gtk+. I am reading the tutorial on gtk site. I also created a test project using glade-2 (2.6.8). But the test program generated by glade-2 cannot close after I click on the x window button. After some investigation, I found that the delete_event/destroy event handler prototypes are

Re: how to make a function thread safe?

2005-01-28 Thread Edward Yang
Felix Kater wrote: Forget about this. It's not easy to answer in general, I see. I found a way for my purposes. Thank You Felix ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list I