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: [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

[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: 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 = base.OnButto

Re: TreeView menu

2006-01-16 Thread Uzytkownik
Uzytkownik gmail.com> writes: > > Maciej Piechotka gmail.com> writes: > > > > Is it possible in gtk(I use Gtk#)? > > User click left mouse to some item and it shows menu (I don't know how this > > menu is calling in English) with some function (Ad

Re: TreeView menu

2006-01-16 Thread Uzytkownik
Maciej Piechotka gmail.com> writes: > > Is it possible in gtk(I use Gtk#)? > User click left mouse to some item and it shows menu (I don't know how this > menu is calling in English) with some function (Add/Delete). > How should I do it? I found some example on GTK reference documentation but I

Missing include in gscanner.h

2005-10-31 Thread Uzytkownik
I wrote simple program used GScanner. When I was compiling gcc shows some error in gscanner.h. The gdataset header was missing. Here's simple patch: --- gscanner.h 12 Oct 2002 19:37:48 - 1.9 +++ gscanner.h 31 Oct 2005 13:15:27 - @@ -28,6 +28,7 @@ #define __G_SCANNER_H__ #include

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 handle

Problem with glade

2005-10-14 Thread Uzytkownik
#include void on_wgtelnet_destroy(GtkWidget *widget, gpointer user_data) { g_print("Dowidzenia"); gtk_main_quit(); } void on_bok_clicked(GtkWidget *widget, gpointer user_data) { gtk_main_quit(); } int main(int argc, char **argv) { GladeXML *xml; gtk_init

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: 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 http://mail.gnome.org/mai

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

Problem with GScanner

2005-07-26 Thread Uzytkownik
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) { GTokenType token; //1 g_debug("head"); //1 while(1

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 numer

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_PAG

[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,

[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,

[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 void do_connection() { GdaClient *client; GdaConnection *connection; GdaCommand *command; client = gda_client_new(); g_print("CONNECTING\n"); connection = gda_clien

Re: GTK+2 on Linux and Windows

2005-06-30 Thread Uzytkownik
Dnia 30-06-2005, czw o godzinie 13:18 +, [EMAIL PROTECTED] napisał(a): > Hi all, > > i have to develop a portable application with GTK+2 and i just want to be > sure it will work. > So my question is : is there any difference between GTK+2 for windows and > GTK+2 for Linux? > See in docume

[gtk-doc] tmpl files in .c

2005-06-26 Thread Uzytkownik
Is it possible not use doc/tmpl/xyz.xml but insert it into a file? I know that it could be function description like in gtkmisc, but if and how dose insert SECTIONS title, Short/Long Description, ect? Thanks in advance Regards. -- Linux user: #376500 (see http://counter.li.org/)

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(s

Segmentation fault in GHashTable

2005-06-24 Thread Uzytkownik
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), "%%(.*)"); (...) In unit test(I use check) it show: (...) check-plik.c:30:E:Core:funkcja: (after this point) Received signal 11 (Segme

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) Wh

[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) {

[solved] Re: GtkFileChooserButton - "signal change"

2005-06-19 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. > > What should I do? > > I didn't f

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? &g

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 gtk-ap

[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/) ___ gtk-app-devel-list

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) iD8DBQFCenVlTCh1hBPsbHURAxJ4AJ

[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: G