How to know if a window got a child window?

2010-09-22 Thread Till Harbaum
indow gets a subwindow? Thanks, Till -- Dr. Till Harbaum ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Re: Howto make a gtkbutton send a "changed" signal?

2009-12-01 Thread Till Harbaum
t; On Tue, Dec 01, 2009 at 09:59:07AM +0100, Till Harbaum wrote: > > i am changing the UI of an existing app for mobile usage in a way that i > replace > > some gtkentry's with some gtkbuttons which the use some alternate input > method. > > > > I want to keep as m

Howto make a gtkbutton send a "changed" signal?

2009-12-01 Thread Till Harbaum
Hi, i am changing the UI of an existing app for mobile usage in a way that i replace some gtkentry's with some gtkbuttons which the use some alternate input method. I want to keep as much of the application as it is and one of the things the app expects is that this particular widget emits a "ch

Re: Capture console app output into texview?

2009-11-23 Thread Till Harbaum / Lists
file); > while (fgets(buf, sizeof(buf), master_file)) > printf("parent got: %s", buf); > > } else { > // child > fclose(master_file); > for (int i = 0; i < 500; i++) { > sleep(1); > fprintf(sla

Re: Capture console app output into texview?

2009-11-21 Thread Till Harbaum / Lists
Hi, thanks again for that hint. Unfortunately adding /* switch to line buffered mode */ if(setvbuf(fh, NULL, _IOLBF, 0)) perror("setvbuf(_IOLBF)"); to the program posted by Dov doesn't change anything. Are there limitations on changing the buffer mode? E.g. only

Re: Capture console app output into texview?

2009-11-20 Thread Till Harbaum / Lists
run, "clicked", > G_CALLBACK(cb_clicked_run), NULL); > > // Finally quit button > GtkWidget *w_button_quit = gtk_button_new_with_label("Quit"); > gtk_box_pack_start(GTK_BOX(w_vbox), w_button_quit, >FALS

Capture console app output into texview?

2009-11-19 Thread Till Harbaum / Lists
Hi, i am trying to run a text mode application in the background of my gtk one and display its output in a textview. I know this is supposed to be done using g_spawn_async_with_pipes and then link to the output via g_io_add_watch. I even got something that sort of works, but the output is very

How to do a graphic overlay?

2009-09-02 Thread Till Harbaum / Lists
Hi, i'd like to do some graphic overlay. In this particular case i'd like to put two buttons on top of a goocanvas. I tried to hook into the expose event and just draw something to the gdkwindow of the widget. That simply doesn't work. It works with a gtkdrawingarea, but not with the goocanvas

Howto draw a cairo surface onto a gdkwindow

2009-08-18 Thread Till Harbaum
Hi, i have problems created a shaped (partly transparent) cairo overlay over a gdkwindow (a gtkdrawablearea already being used to display a pixmap). The problem: i am adding some "OSD" controls to a gtk map renderer. My first attempt was to directly draw my controls into the pixmap used for th

Re: Re: Convert png inline into a gdk-pixbuf?

2009-07-09 Thread Till Harbaum
etreff: Re: Convert png inline into a gdk-pixbuf? Gesendet: Do, 09. Jul 2009 Von: David Nečas > On Thu, Jul 09, 2009 at 08:46:39AM +0200, Till Harbaum wrote: > > How can i decode a png image stored in a memory buffer into a gdk-pixmap > without > > saving it in a file during

Re: Re: Convert png inline into a gdk-pixbuf?

2009-07-09 Thread Till Harbaum
Hi, works like a charm, thanks! Till - original Nachricht Betreff: Re: Convert png inline into a gdk-pixbuf? Gesendet: Do, 09. Jul 2009 Von: David Nečas > On Thu, Jul 09, 2009 at 08:46:39AM +0200, Till Harbaum wrote: > > How can i decode a png image stored in a memo

Convert png inline into a gdk-pixbuf?

2009-07-08 Thread Till Harbaum
Hi list, How can i decode a png image stored in a memory buffer into a gdk-pixmap without saving it in a file during that process? I have a png image downloaded from the internet and thus now stored in a memory buffer. Now i'd like to convert that into a gdk-pixbuf without saving the file to dis

How to adjust the spacing around an icon in a button?

2009-04-15 Thread Till Harbaum / Lists
Hi, i have buttons with icons inside. For some reason the button is slightly bigger than it needs to be. Where do i adjust the border that's drawn around an icon in a button? Also this only affects the height. Is there some kind of preferred vertical size of a button? Regards, Till __

Re: compile 2 libs together

2009-01-20 Thread Till Harbaum / Lists
Hi, Am Dienstag 20 Januar 2009 schrieb frederico schardong: > But now I must use allegro and libglade together. Why not: gcc -o main main.c `pkg-config --cflags --libs libglade-2.0` `allegro-config --libs` Till ___ gtk-app-devel-list mailing list gtk-

Wait for gtk events with select?

2008-12-30 Thread Till Harbaum / Lists
Hi, is there a way to wait for gtk events via some file descriptor given to a select call? I am porting an application to gtk that calls some "gimme_input" function every now and then and want's me to do some waiting for net sockets there. Now i'd like to use the same select call i am using for

Re: GtkProgress demo from tutorial not working on ubuntu hardy?

2008-12-11 Thread Till Harbaum / Lists
on the heavily customized gtk framework delivered with the nokia n810? Till Am Mittwoch 10 Dezember 2008 schrieb Till Harbaum: > Hi, > > i can't manage to get the activity mode of the progress bar to work > on a ubuntu hardy running gtk 2.12.9 > > Even th

GtkProgress demo from tutorial not working on ubuntu hardy?

2008-12-10 Thread Till Harbaum
Hi, i can't manage to get the activity mode of the progress bar to work on a ubuntu hardy running gtk 2.12.9 Even the example from http://library.gnome.org/devel/gtk-tutorial/stable/x831.html just makes the progressbar stop when i activate "Activity mode". I was expecting it to show this blob

Re: Ok button key binding

2008-11-14 Thread Till Harbaum / Lists
Hi, Am Freitag 14 November 2008 schrieb Garth's KidStuff: > The one subtle point for me was that any Gtk::Entry controls in the dialog > ate the return unless I did the following: > > Gtk::Entry m_IDC_ADD_PAGE_TITLE; > ... > m_IDC_ADD_PAGE_TITLE.set_activates_default(true); // Enter while

Changing gtkstatusbar background color

2008-11-14 Thread Till Harbaum / Lists
Hi, sorry to bother you again with a question. I am trying to set the background color of a statusbar. I have found several postings in the net indicating that this is just a matter of adding the statusbar to an eventbox and setting the background color of that. However ... that just doesn't wo

Ok button key binding

2008-11-13 Thread Till Harbaum / Lists
Hi, i just noticed, that there seems to be some automatic key binding for the Escape key to the cancel/No/Close buttons of gtkdialogs. But there doesn't seem to be a binding for Open/Yes/Ok which i expected to be the Return key. Are these bindings documented somewhere? I can't find anything. Al

Make gtkscrolledwindow to expand to accommodate contents?

2008-11-02 Thread Till Harbaum
Hi, since my last question got unanswered, please let me rephrase it: How do i make a scrolledwindow to expand to accommodate its contents? I do have a varying set of items to be placed in a scrolledwindow. I want this to be displayed in a dialog as small as possible. This dialog should be bigg

A dialog as small as possible, except it needs scrolling

2008-10-31 Thread Till Harbaum / Lists
Hi, i have the following problem: I have a dialog with variable contents. Since this content may even exceed the screen size (which isn't too difficult on a nokia n810) i have put the entire content into a scrolled window. My problem now is the dialog size. I want the dialog as small as possible

Re: Howto correctly generate "expandable void"?

2008-10-25 Thread Till Harbaum / Lists
Hi, Am Samstag 25 Oktober 2008 schrieb James Scott Jr: > -- vbutton_box(x,y,z) -- postioned using end Argh ... i can't believe i never realized that there's also a gtk_box_pack_end. Thanks for pointing this out :-) Till ___ gtk-app-devel-list mailin

Howto correctly generate "expandable void"?

2008-10-24 Thread Till Harbaum / Lists
Hi, i have a vbox with a bunch of buttons. I want some of them to appear at the top and some of them at the bottom. The buttons should not be expanded and the space between them should also not expand except the space between the two groups. Something like this: (a) (b) (c) (x) (y) (z) How i

Re: Passing Struct to g_signal_connect

2008-10-19 Thread Till Harbaum / Lists
Hi, you have to make sure that the parameters of your callback function exactly match what's been described for this particular event. In your case your have to check the "clicked" event for a GtkButton which gives us: void user_function(GtkButton *button, gpointer user_data) So this is how

Where to ask about gnomecanvas? (How to get all items via gnome_canvas_get_item_at?)

2008-09-11 Thread Till Harbaum / Lists
Hi, is this the right place to ask a question about gnomecanvas? I am using gnomecanvas for a mapping application (an openstreetmap editor for maemo). Sometimes items are stacked (e.g. a building is a polygon which may be placed in some some park which also is a polygon). The problem is that i ne

Re: Gtk::ProgressBar doesn't work synchronously

2008-06-28 Thread Till Harbaum / Lists
Hi, try calling gtk's main processing routine while your task is doing its work. Something like while(gtk_events_pending ()) gtk_main_iteration (); right after your update of the state of the progress bar should do the trick. Till Am Mittwoch 09 April 2008 schrieb Garth's KidStuff

Howto copy gtkhtml2 selection to clipboard?

2008-06-12 Thread Till Harbaum / Lists
Hi, i am searching for the gtkhtml2 pendant of gtk_text_buffer_copy_clipboard() which is the function to be called if the user selects "copy" from an edit menu. Any hint? Thanks, Till ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.or

Re: How to make gtktextview automatically scroll to cursor?

2008-05-19 Thread Till Harbaum / Lists
olled window. And in fact it _must_ be placed directly to make the scrollbars work as expected. Till Am Montag 19 Mai 2008 schrieb Till Harbaum / Lists: > Hi, > > i have simple problem but hakf an hour of googling didn't give me an answer: > > How do i make an editabl

Re: How to make gtktextview automatically scroll to cursor?

2008-05-19 Thread Till Harbaum / Lists
t all tutorials dealing with textviews inside a scrolled window do this with non-editable textviews ... Thanks again, Till Am Montag 19 Mai 2008 schrieb [EMAIL PROTECTED]: > On Monday 19 May 2008 13:23:39 Till Harbaum / Lists wrote: > > Hi, > > > > i have simple problem but

How to make gtktextview automatically scroll to cursor?

2008-05-19 Thread Till Harbaum / Lists
Hi, i have simple problem but hakf an hour of googling didn't give me an answer: How do i make an editable gtktextview inside a scrolledwindow to automatically scroll to the cursor position? This must be a very basic issue and i am sure it is answered in various simple examples. But i just don'

Re: Solved: How to make a gtktreeview column flexible?

2008-04-26 Thread Till Harbaum / Lists
Till > > On Sat, 2008-04-26 at 11:16 +0100, Till Harbaum / Lists wrote: > > Hi, > > > > in have solved this problem. Here's the answer for reference: > > > > Instead of using gtk_tree_view_insert_column_with_attributes t

Solved: How to make a gtktreeview column flexible?

2008-04-26 Thread Till Harbaum / Lists
ce to the column. Thus one can use gtk_tree_view_column_set_expand(TRUE) on that column and voila ... the column scales nicely with the window width. Till Am Freitag 25 April 2008 schrieb Till Harbaum / Lists: > Hi, > > i have a gtktreeview filling the complete width of a window. Now i wa

How to make a gtktreeview column flexible?

2008-04-25 Thread Till Harbaum / Lists
Hi, i have a gtktreeview filling the complete width of a window. Now i want the view to always use the full width. I therefore want the middle column (a text column) to be flexible. I want it to be as wide as possible for any given window width. So if you make the window wider i want this column

Still the multi-textview in scrolled win in notebook problem ...

2008-04-23 Thread Till Harbaum / Lists
Hi, i am still fighting with a strange problem. Some things need to be combined to trigger it: - I have a tabbed notebook - One initially not visible (read: not the first) tab contains a scrolled win - Inside this win are mutliple textviews (or gtkhtml views) in a vbox or table - At least one of

Problem with multiple GtkTextView in one ScrolledWindow

2008-04-02 Thread Till Harbaum
Hi, i have recently run into a layout problem i am unable to solve. I have a dialog with a notebook and one of the notebooks tabs is filled with the widget returned by the funktion below. This function creates a scrolled window, puts a vbox inside and then add several textviews and some hboxes