Re: GObject singleton.

2005-09-07 Thread Stefan Kost
hi, Uzytkownik wrote: I have class A(abstract), which is singleton. It have subclasses called B, C and D. Is it possible that create class B overload "static" A methods? If A is abstract, than the default virtual methods will just have a g_return_if_reached() and a subclass not overloading

Re: GObject Singleton

2005-09-07 Thread Stefan Kost
hi, Uzytkownik wrote: I have singleton A and subclass B, C and D. 1. How do it in GObject? The sigleton pattern is usually realized by having a factory method. The application would use e.g. gdk_display_manager_get() which returns a reference to always the same GdkDisplayManager object. Suc

GObject singleton.

2005-09-07 Thread Uzytkownik
I have class A(abstract), which is singleton. It have subclasses called B, C and D. Is it possible that create class B overload "static" A methods? Something like: mylib_b_init(); mylib_a_do_something(); //mylib_b_do_something I prefer that user (it's library) can create next subclass. Regards

GObject Singleton

2005-09-07 Thread Uzytkownik
I have singleton A and subclass B, C and D. 1. How do it in GObject? 2. Can I do something that I cannot have B or D at the same time? Regards ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk

Re: gtk_list_store_new(1, G_TYPE_STRING) and retrieving data

2005-09-07 Thread David Necas (Yeti)
On Wed, Sep 07, 2005 at 08:42:42PM +0200, HuamiSoft Hubert Sokolowski wrote: > > static gboolean model_foreach (GtkTreeModel *model, > GtkTreePath *path, > GtkTreeIter *iter, > g

Re: gtk_list_store_new(1, G_TYPE_STRING) and retrieving data

2005-09-07 Thread HuamiSoft Hubert Sokolowski
On Wed, 7 Sep 2005 13:52:34 -0400 "Faria, Sydney C" <[EMAIL PROTECTED]> wrote: > I made a GtkListStore model and populated it with data entries and view it > via a GtkTreeView no problem. Now I want to use a button click callback to > scan through the list > to access all the items to print them

gtk_list_store_new(1, G_TYPE_STRING) and retrieving data

2005-09-07 Thread Faria, Sydney C
I made a GtkListStore model and populated it with data entries and view it via a GtkTreeView no problem. Now I want to use a button click callback to scan through the list to access all the items to print them out. I found gtk_tree_model_iter_next(model, iter) and gtk_tree_model_getvalue(model, i

Re: horizontal window size and toolbar

2005-09-07 Thread Matthias Clasen
On Wed, 2005-09-07 at 13:15 +0200, The Saltydog wrote: > How can I force the horizontal main window size, in order to show the > full toolbar elements? Set the show-arrow property of the toolbar to FALSE. ___ gtk-app-devel-list mailing list gtk-app-deve

Iserting in a sortable tree

2005-09-07 Thread Razvan Gavril
> > Secondly, you should make sure that sorting is disabled while you are > doing your mass insertions, otherwise your store might be resorted after > each and every single row insertion, which is going to be everything but > fast. > I know it must be some simple thing that i missed when RTFM

Re: GtkList problem solved

2005-09-07 Thread Stefan Kost
Hi, Faria, Sydney C schrieb: > I still have a couple of question about this widget: > 1. I saw some example code creating a cell renderer as follows: > renderer = gtk_cell_renderer_text_new(); > this looks like some sort of formatting or an xml tag or most likely a > typo, if not a typo

GtkList problem solved

2005-09-07 Thread Faria, Sydney C
There were a number of typos in the code: 1st GtkCellRendererText should be GtkCellRenderer and 2nd gtk_list_store_append (...) is followed by 3 gtk_list_store_set(...) calls, but each of these should be preceded by a gtk_list_store_append(...) call to get the current version of the iterator. My co

Re: another magnificant display of GTK software

2005-09-07 Thread Alf Stockton
Are you entering the Linux Format Sudoku competition with your program? Have a look at www.linuxformat.co.uk/bounty if you haven't already. -- Regards, Alf Stocktonwww.stockton.co.za You look like a million dollars. All green and wrinkled. My email disclaimer is available at www

Centered zoom with GtkScrolledWindow

2005-09-07 Thread Robert Reitenbach
Dear GTK developers and users, It is my first use of the GTK library and maybe I did something wrong. I stumbled about a problem and cannot find an answer to it, even if I think, that there might be a more or less simple solution to it. I looked through the mailing list archives but could not find

horizontal window size and toolbar

2005-09-07 Thread The Saltydog
How can I force the horizontal main window size, in order to show the full toolbar elements? ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Ring Buffer

2005-09-07 Thread Stefan Kost
Hi Bryan, > Does anyone know if glib has a generic ring buffer mechanism? I would > hate to re-invent the wheel. > > Thanks, > Bryan gstreamer has one for audio: ./gst-plugins-base/gst-libs/gst/audio/gstringbuffer.c ./gst-plugins-base/gst-libs/gst/audio/gstringbuffer.h Stefan _

Re: UI manager problem, more concise

2005-09-07 Thread HuamiSoft Hubert Sokolowski
On Wed, 7 Sep 2005 20:51:26 +1000 Nick Watts <[EMAIL PROTECTED]> wrote: > Umm, lets see. I have a whole bunch of UImanager code, but none of it causes > an error until I get to this: > > if (!gtk_ui_manager_add_ui_from_string (ui, ui_info, -1, &error)) > { > g_message ("building menus failed: %s

UI manager problem, more concise

2005-09-07 Thread Nick Watts
Umm, lets see. I have a whole bunch of UImanager code, but none of it causes an error until I get to this: if (!gtk_ui_manager_add_ui_from_string (ui, ui_info, -1, &error)) { g_message ("building menus failed: %s", error->message); g_error_free (error); } The weird thing is that although I get a

Re: WinXP & MSSQL & C & GTK+

2005-09-07 Thread Kim Adil
Alf, Here is the code of includes, and procedures that I use in my gtk application compiled on linux, xp,98 and 2000. Works well 24/7 for 2 years. code is ugly but working. Database is irrelevant, I have used it with access, sqlserver, postgresql, and mysql sucessfully. This code runs in productio

Re: simple question: are const gchar* arguments hold as copies internally?

2005-09-07 Thread Felix Kater
Tristan Van Berkom <[EMAIL PROTECTED]> wrote: > Generally, > if a function takes `const gchar *' as an argument it just means > that the said function garauntees that your string will not be modified > by that function (whereas a `gchar *' argument is generally a return > location for a singl

Re: another magnificant display of GTK software

2005-09-07 Thread Yogesh M
Virus removed, Had to browse from internet cafe using windows XP, and you know what that means Virus, --- Wallace Owen <[EMAIL PROTECTED]> wrote: > On Tue, 2005-09-06 at 12:18 -0400, Matthew Yaconis > wrote: > > Perhaps I'm the only one to follow the link in > this email and not be > > suspic