Re: Howto attach a popup menu to a menubar (gtk2)

2017-03-01 Thread David C. Rankin
On 03/01/2017 08:17 PM, David C. Rankin wrote: > All, > > I have a menubar (working fine) and I want to attach a popup menu to that > widget to "show/hide" a toolbar below it. I cannot figure out how to attach > the popup to the 'menubar' itself generically. > > GtkWidget *evbox;

Re: what should I do if I got "Stream has outstanding operation" error.

2017-03-01 Thread KC
2017-03-02 2:29 GMT+08:00 KC : > Hi, > > I use g_output_stream_printf() to send command to a server > and use g_data_input_stream_read_line() to read data back. > > Sometime I got error message "Stream has outstanding operation". > What should I do if I detect this error ? > Do I need to flush() t

Howto attach a popup menu to a menubar (gtk2)

2017-03-01 Thread David C. Rankin
All, I have a menubar (working fine) and I want to attach a popup menu to that widget to "show/hide" a toolbar below it. I cannot figure out how to attach the popup to the 'menubar' itself generically. GtkWidget *evbox; /* popup menu container */ GtkWidget *pmenu; /*

Re: Does gtk2 provide a case 'in'-sensitive text search via 'gtk_text_iter_..._search'?

2017-03-01 Thread David C. Rankin
On 02/23/2017 12:53 PM, cecas...@aol.com wrote: > > Hi David, > > I tried out gtkedit and it compiled and worked fine. Did a few searches > and it found the words. > When I compiled I got a few warnings like the following. > > gtk_common_dlg.c: In function ‘err_dialog’: > gtk_common_dlg.

what should I do if I got "Stream has outstanding operation" error.

2017-03-01 Thread KC
Hi, I use g_output_stream_printf() to send command to a server and use g_data_input_stream_read_line() to read data back. Sometime I got error message "Stream has outstanding operation". What should I do if I detect this error ? Do I need to flush() the IO stream after g_output_stream_printf() ?

Resize and place a background image

2017-03-01 Thread Rúben Rodrigues
Hi, I'm trying to make something like this http://www.kksou.com/php-gtk2/sample-codes/place-a-background-image-in-GtkWindow-Part-6-align-bottom-right-GdkDrawable-draw_pixbuf.php but in C language. For now i just want to fill background image to it's cointainer (GtkLayout), because the containe

Re: Mouse events

2017-03-01 Thread Norbert de Jonge
> "button-press-event" occurs outside my window > application? Is there any way to connect an > extern mouse event with my gtk application? So, other people may know more about this, but here's what I can find. You can g_signal_connect() the focus-out-event. https://developer.gnome.org/gtk3/stabl

Mouse events

2017-03-01 Thread JORGE
How can I destroy a window when mouse event "button-press-event" occurs outside my window application? Is there any way to connect an extern mouse event with my gtk application? Can someone help me? Regards. La @universidad_uci es Fidel. Los jóvenes no fallaremos. #HastaSiempreComandante #Hastala

Re: dark theme gtk+2?

2017-03-01 Thread Emmanuele Bassi
No; GTK+ 2.x does not have support for per-application theme variants, and thus it does not have support for dark themes. Ciao, Emmanuele. On 1 March 2017 at 12:34, Rúben Rodrigues wrote: > Hi guys, > > > It's possible to make this > > g_object_set(gtk_settings_get_default(), > "gtk-applic

dark theme gtk+2?

2017-03-01 Thread Rúben Rodrigues
Hi guys, It's possible to make this g_object_set(gtk_settings_get_default(), "gtk-application-prefer-dark-theme", TRUE, NULL); with gtk+2.0? Thanks --- Este e-mail foi verificado em termos de vírus pelo software antivírus Avast. https://www.avast.com/antivirus

Re: Gtk-WARNING **: Could not find signal handler

2017-03-01 Thread Rúben Rodrigues
Thanks everyone! I´m using eclipse, i i think that i used gmodule-export-2.0 the wrong way. Before i add gmodule-export-2.0 in Cross GCC Linker -> Libraries -> Libraries (-l), adn it gives an error, i think its because don't find this library.. Now i add `pkg-config --libs gmodule-export-2.0`

Re: Gtk-WARNING **: Could not find signal handler

2017-03-01 Thread Norbert de Jonge
> pi@raspberrypi:~ $ sudo apt-get install gmodule-export-2.0 As Tilo wrote, you may need to compile it yourself. A quick search seems to indicate that there is gmodule-no-export-2.0 (no export) and gmodule-2.0 (export). If this is true, you may want to look for gmodule-2.0 instead. norbert # ap

Re: Gtk-WARNING **: Could not find signal handler

2017-03-01 Thread Rúben Rodrigues
Hi, I don't find this library .. pi@raspberrypi:~ $ sudo apt-get install gmodule-export-2.0 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package gmodule-export-2.0 E: Couldn't find any package by regex 'gmodule-export-2.0' Thanks