gtk_statusbar!
Hi everyone! I built a gtk_application with glade,it's a main window with menu.When i select a menu option, my program opens a new window with entries and buttons. In the entry i write the name of a file to open. This file has the structure: number1 (ex.25) number 2 (ex.34) operation (product) after writing the name,i push the button and it's called the function real_opration() This function mekes a lot of things,but the first one is read the numbers of entry_file and the opration. i'd like that in the status bar of this window(not main_window),it'll be written... reading number 1... reading number 2... operating.. End i tried but only is written End. How can i change the content of statusbar,during reading the entry_file?? thanks a lot ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Now, about gtk_tree's
On 6/29/06, John Coppens [EMAIL PROTECTED] wrote: Date: Wed, 28 Jun 2006 13:50:41 -0300 From: John Coppens [EMAIL PROTECTED] Subject: Re: Now, about gtk_tree's To: gtk-app-devel-list@gnome.org Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=US-ASCII On Wed, 28 Jun 2006 17:26:12 +0200 simon kendall [EMAIL PROTECTED] wrote: Hi, So, following the advice of converting the lists to trees, I started changing all the functions into tree-oriented ones. I have a book on the subject, and I read the section on trees as there is no documentation on gtk.org. Now, for every tree-related function I write my compiler says it's undeclared. Also checked developer.gnome.org, but that does not either say anything about such. Anything I'm doing wrong, you think? Possibly... Do you have GTK+ 2.xxx installed? I do suspect you are really talking about clists to be converted into GtkTreeModels. aren't you? And there is documentation, GTK+ 2.0 Tree View Tutorial http://www.gtk.org/tutorial/ which guides you, step-by-step, through the process of defining them. Coming from clists, you'll be interested mostly in the GtkListStore widget. It _is_ quite a step from CLists, but well worth it! John I suppose I would be yet again working on something not quite existing in GTK+ 2, for I was writing stuff in style with gtk_tree_new and gtk_tree_item_new, which apparently isn't defined. In this case, I am rather starting to doubt the information in my book, but what the heck. Anyway, in gtk.org/tutorial, the only thing on TreeViews seem to be under Undocumented Widgets. I suppose I'll check up on CLists and GtkListStore, thanks for the answer. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
What's a GtkDrawingArea good for?
Hello, this is really odd. Some time ago I spent about a week creating a custom widget (stuff gets drawn directly into the widgets's window using GDK primitives). All works quite well. It's only now that I realized that I hadn't even used a GtkDrawingArea for the purpose. I must have forgotten. So my puzzlement is evident from the Subject line: if I can do all that stuff without using a dedicated GtkDrawingArea, what is it good for? Thanks, --Daniel ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: What's a GtkDrawingArea good for?
On Thu, Jun 29, 2006 at 03:09:33PM +0200, Daniel Haude wrote: this is really odd. Some time ago I spent about a week creating a custom widget (stuff gets drawn directly into the widgets's window using GDK primitives). All works quite well. It's only now that I realized that I hadn't even used a GtkDrawingArea for the purpose. I must have forgotten. So my puzzlement is evident from the Subject line: if I can do all that stuff without using a dedicated GtkDrawingArea, what is it good for? It can handle realize and configure events. So it is useful for quick and dirty custom display `widgets' when one creates a GtkDrawingArea, connects something to expose-event and that's it. Of course, if you make a real widget (with its own class and everything) it makes little sense to base it on GtkDrawingArea instead of GtkWidget (or other suitable parent). Yeti -- Anonyms eat their boogers. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: gtk_statusbar!
That's because you are calling real_opration() from the button callback. So the event loop is not running and it can't update your GUI. You should call gtk_main_iteration while gtk_events_pending==true more at http://developer.gnome.org/doc/API/2.0/gtk/gtk-General.html#gtk-events-pending and http://developer.gnome.org/doc/GGAD/sec-mainloop.html Regards On 6/29/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi everyone! I built a gtk_application with glade,it's a main window with menu.When i select a menu option, my program opens a new window with entries and buttons. In the entry i write the name of a file to open. This file has the structure: number1 (ex.25) number 2 (ex.34) operation (product) after writing the name,i push the button and it's called the function real_opration() This function mekes a lot of things,but the first one is read the numbers of entry_file and the opration. i'd like that in the status bar of this window(not main_window),it'll be written... reading number 1... reading number 2... operating.. End i tried but only is written End. How can i change the content of statusbar,during reading the entry_file?? thanks a lot ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Now, about gtk_tree's
On 6/29/06, David Nečas (Yeti) [EMAIL PROTECTED] wrote: GtkTreeView (which, despite its name, can do non-trees too). A list is also a tree, that's why it handles it well. Perhaps we should have a generalized GtkGraphView to handle all kinds of graphs? ;) ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
AW: WG:_Toolbarbutton_nach_erstem_Betä tigen_ina ktiv
Hallo, first: why the archive gtk-app-devel-list/2006-June doesn't work? I have start the app under gnome destop, it also doesn't work. I have changed the source code to use the new functions for toolbar toolItem = gtk_tool_button_new(iconw, g_locale_to_utf8( text, -1, NULL, NULL, NULL)); g_signal_connect(G_OBJECT(toolItem), clicked, G_CALLBACK(m_gt_button_press), xe); tTip = gtk_tooltips_new(); gtk_tool_item_set_tooltip(toolItem, tTip, g_locale_to_utf8( tooltip, -1, NULL, NULL, NULL ), Private); gtk_toolbar_insert((GtkToolbar *)toolbar, toolItem, -1); gtk_widget_show(iconw); gtk_widget_show((GtkWidget *)toolItem); I can click the toolbarbutton, first time the callback-function is called, but if I don't move the mouse from the button and click it, the callback isn't called. An previous problem - colors in GtkEntry - I have solved with an empty file .no-atrc-to-tgkrc-mapping in my home-dir. See gtk-app-devel-list/2006-May color in gtkentry Brigitte -Ursprüngliche Nachricht- Von: ensonic [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 28. Juni 2006 15:49 An: Vallario Brigitte Cc: gtk-app-devel-list@gnome.org Betreff: Re: WG:_Toolbarbutton_nach_erstem_Betätigen_ina ktiv hi, at first this list is english :) regarding the problme, can it be suses qt theme engine for gtk? what happens if you start a gnome desktop and start your app there. Stefan On 12:54:32 pm 27/06/2006 Vallario Brigitte [EMAIL PROTECTED] wrote: -Ursprüngliche Nachricht- Von: Vallario Brigitte Gesendet:Donnerstag, 1. Juni 2006 08:11 An:'[EMAIL PROTECTED]' Betreff:WG: Toolbarbutton nach erstem Betätigen inaktiv -Ursprüngliche Nachricht- Von: Vallario Brigitte Gesendet:Mittwoch, 31. Mai 2006 13:13 An:'[EMAIL PROTECTED]' Betreff:Toolbarbutton nach erstem Betätigen inaktiv Hallo, wer kann helfen? Seit der Version SuSE 9.3 mit KDE funktionieren die Toolbarbuttons nicht mehr richtig. Wenn ich z.B. bei einer Funktion Weiterblättern das erste mal mit der Maus draufgedrückt habe, muss ich mit der Maus erst wieder wegfahren - vom Button runter bewegen - und danach wieder auf den Button, damit ich diesen auslösen kann. So erzeuge ich die Toolbar im Hauptfenster: toolbar = gtk_toolbar_new(); gtk_toolbar_set_orientation( GTK_TOOLBAR(toolbar), GTK_ORIENTATION_HORIZONTAL ); gtk_toolbar_set_style( GTK_TOOLBAR(toolbar), GTK_TOOLBAR_ICONS ); gtk_container_set_border_width( GTK_CONTAINER(toolbar), 1 ); Die Icons lade ich wie folgt hinein: iconp = gdk_pixbuf_new_from_file( icon, err ); if(err == NULL) { iconp = gdk_pixbuf_add_alpha (iconp,1,192,192,192) ; iconw = gtk_image_new_from_pixbuf (iconp) ; } button = gtk_toolbar_append_item( GTK_TOOLBAR(toolbar), g_locale_to_utf8( text, -1, NULL, NULL, NULL ), g_locale_to_utf8( tooltip, -1, NULL, NULL, NULL ), Private, iconw, GTK_SIGNAL_FUNC(m_gt_button_press)); ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: File Selector Filter, directory only
On Thu, Jun 29, 2006 at 10:16:06AM +0530, Santhosh wrote: http://developer.gnome.org/doc/API/2.0/gtk/GtkFileChooser.html#gtk-file-chooser-set-action http://developer.gnome.org/doc/API/2.0/gtk/GtkFileChooser.html#GtkFileChooserAction The above URLs would be helpful... Regards, Santhosh. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list Thanks. My code was using filew = gtk_file_selection_new (Open File); which works fine for regular files. There appears to be a difference between file selection and file_chooser widgets that escapes me. In any case, I get the following warning from the line: gtk_file_chooser_set_action (GTK_FILE_SELECTION (filew), GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER | GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER); = (bspc:5768): Gtk-CRITICAL **: gtk_file_chooser_set_action: assertion `GTK_IS_FILE_CHOOSER (chooser)' failed Why then are there two widgets that do (almost) the same thing? Or what am I missing here? Thanks Peter ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
switch_page signal from gtk_notebook is fired two times
Hi, I have a notebook and connected a callback function on_notebook1_switch_page to the switch_page signal. If I put a g_message(test) call in the function, I see that the function is called two times when I switch from one page to another. I connected the callback only once. Is this a kind of bug or is it intended because I switch _from_ the current page and then I switch _to_ the new current page. But the passed page_num argument is in both calls equal. I'm a bit confused. Regards, Enrico -- Get my GPG key from http://www.uvena.de/pub.key Geany, a lightweight IDE using GTK2 - http://geany.uvena.de ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: switch_page signal from gtk_notebook is fired two times
On Fri, 30 Jun 2006 01:22:39 +0200, Enrico Tröger [EMAIL PROTECTED] wrote: Hi, I have a notebook and connected a callback function on_notebook1_switch_page to the switch_page signal. If I put a g_message(test) call in the function, I see that the function is called two times when I switch from one page to another. I connected the callback only once. Is this a kind of bug or is it intended because I switch _from_ the No, it isn't. I just made a mistake inside the callback function which caused another function to switch the page again, and so the signal was fired again. Oops. Sorry for wasting your time. Regards, Enrico -- Get my GPG key from http://www.uvena.de/pub.key Geany, a lightweight IDE using GTK2 - http://geany.uvena.de ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list