Differences beetwen ref and weak ref

2006-01-17 Thread Uzytkownik
I'm so sorry - when should I use weak reference? Regards ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: TreeView menu

2006-01-16 Thread Uzytkownik
For all which use google. This is Simple class which allow popup menus: public class TreeViewPopup : TreeView { public TreeViewPopup(Menu m) { this.m = m; } override protected bool OnButtonPressEvent(EventButton evnt) { bool ret =

[Gtk#] TreeModelFilter - it not filter at all.

2006-01-16 Thread Uzytkownik
public class Kategorie : VBox { public Kategorie() { //... PackStart(szukaj = new Entry(), false, false, 0); { szukaj.Changed += delegate {filter.Refilter();}; } szukaj.Show();

Re: [Gtk#] TreeModelFilter - it not filter at all.

2006-01-16 Thread Uzytkownik
return (nazwa.IndexOf(nazwa) -1); ^ I'm so sorry. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Problem with glade

2005-10-15 Thread Uzytkownik
Dnia 14-10-2005, pią o godzinie 14:32 -0400, Matthias Clasen napisał(a): On Fri, 2005-10-14 at 14:27 -0400, Brian Clark wrote: (a.out:5100): libglade-WARNING **: could not find signal handler 'on_bok_clicked'. (a.out:5100): libglade-WARNING **: could not find signal handler

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

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

GError and gettext. Should I or shouldn't I?

2005-07-26 Thread Uzytkownik
Should I use gettext in GError messages? In message is position of error in file. Or it will be print on stdout or for example on GUI show fragment of file. Regards -- Linux user: #376500 (see http://counter.li.org/) -- W³ochy i Pary¿ - przewodniki turystyczne do wyboru. Tylko z lipcowym

Re: Problem with GScanner

2005-07-26 Thread Uzytkownik
Dnia 26-07-2005, wto o godzinie 10:42 +0200, Uzytkownik napisał(a): I use GScanner to parse same file. I test the first function of setting page size. In file it's represent by: PAGE A4; or PAGE A4; etc. This is parse loop: static void parse_head(WocPagerParser *parser, GError **error

Re: Problem with GScanner

2005-07-26 Thread Uzytkownik
Error was in another place :) Regards -- W³ochy i Pary¿ - przewodniki turystyczne do wyboru. Tylko z lipcowym numerem miesiêcznika Auto+. http://www.a-plus.pl ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

[GObject] Error in unref

2005-07-25 Thread Uzytkownik
I've this check function: #include woc-pager-test.h #include woc-pager-parser.c #define TEST(name, cau) g_print(#name ...\t%s\n, cau ? OK : Fail) void woc_pager_parser_test() { WocPagerParser *parser = NULL; TEST(Check GType, WOC_PAGER_PARSER_TYPE); TEST(Init, parser =

Re: [GObject] Error in unref

2005-07-25 Thread Uzytkownik
Dnia 25-07-2005, pon o godzinie 15:21 +0100, Tim Müller napisał(a): On Monday 25 July 2005 10:14, Uzytkownik wrote: #define TEST(name, cau) g_print(#name ...\t%s\n, cau ? OK : Fail) TEST(Init, parser = g_object_new(WOC_PAGER_PARSER_TYPE, NULL)); g_print(%p\n, parser-scanner

[gnome-db] [Newbie, libgda] Problem with libgda -

2005-06-30 Thread Uzytkownik
I'd like to check if libgda could create SQLite db. $ cat sqlite-create.c #include libgda/libgda.h void do_connection() { GdaClient *client; GdaConnection *connection; GdaCommand *command; client = gda_client_new(); g_print(CONNECTING\n);

Re: Segmentation fault in GHashTable

2005-06-24 Thread Uzytkownik
Dnia 24-06-2005, pią o godzinie 17:25 +0100, Tim Müller napisał(a): On Friday 24 June 2005 16:59, Uzytkownik wrote: I've problem with GHashTable: (...) self-private-check = g_hash_table_new(g_int_hash, g_int_equal); g_hash_table_insert(self-private-check, GINT_TO_POINTER(3

Re: [GObject, long] Gtype for enum + runtime init or by init function.

2005-06-23 Thread Uzytkownik
Dnia 22-06-2005, śro o godzinie 18:25 -0400, Tristan Van Berkom napisał(a): Uzytkownik wrote: Hi, You should start off by reading: http://www.le-hacker.org/papers/gobject/ 1. In g_param_spec_enum I must have GType of this enum. a) Why this function need it? Its needed

[GObject, long] Gtype for enum + runtime init or by init function.

2005-06-22 Thread Uzytkownik
1. In g_param_spec_enum I must have GType of this enum. a) Why this function need it? b) How create for enum GType? 2. I should register GType in package_name_get_type or package_class_init: a) GType package_name_get_type() { static GType type = 0; if(type == 0) {

GtkFileChooserButton - signal change

2005-06-18 Thread Uzytkownik
I'd like to call some function, when user select new file in GtkFileChooserDialog. What should I do? I didn't find any signal like clicked or change? Regards. -- Linux user: #376500 (see http://counter.li.org/) ___ gtk-app-devel-list mailing list

Re: GtkFileChooserButton - signal change

2005-06-18 Thread Uzytkownik
Dnia 18-06-2005, sob o godzinie 12:05 +0200, Daniel Pekelharing napisa(a): On Sat, 2005-06-18 at 10:30 +0200, Uzytkownik wrote: I'd like to call some function, when user select new file in GtkFileChooserDialog. GtkFileChooserButton What should I do? I didn't find any signal like clicked

[gsf] stdin/stdout + tee

2005-06-14 Thread Uzytkownik
1. How I should access to std{in,out,err} is recommended? By FILE * or IOChannel *? 2. Can I create one GsfOutput, which automatically send to two(or more) another? Best regards -- Linux user: #376500 (see http://counter.li.org/) ___

Simple copy of hash table

2005-05-05 Thread Uzytkownik
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 How copy hash table without g_hash_table_foreach? Is it possible in one line of code? Regards. - -- Linux user: #376500 (patrz http://counter.li.org/) -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux)

[libglade] nx the same window

2005-04-21 Thread Uzytkownik
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 I've got callback function: void on_BUstaw_clicked(GtkWidget *widget, gpointer *_data) { Data* data = (Data*)_data; if(data-id == 20) { DEB(g_print(id == 20\n)); return; }

GObject - create with arguments.

2005-04-17 Thread Uzytkownik
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 I'm newbie in GObject(before I use C++). Can I create object with arguments? In C++: class xyz { public: xyz(int i); }; Regards. - -- Linux user: #376500 (see http://counter.li.org/) -BEGIN PGP SIGNATURE- Version: