popup window

2006-11-23 Thread sunzysjzri
hi, guys I write an application which has a button , when you click the button popup a new window, i want to add a button in the popup window, which could close the popup window. when i run my application, gtk debuger said that the the "gtk_main_loop != NULL" failed, why ? this is my but

Re: popup window

2006-11-23 Thread Olexiy Avramchenko
On 11/23/06, sunzysjzri <[EMAIL PROTECTED]> wrote: > hi, guys > I write an application which has a button , when you click the button > popup a new window, i want to add a button in the popup window, which could > close the popup window. > when i run my application, gtk debuger said that t

Re: GtkTreeView having nodes with underlined text

2006-11-23 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, Nov 22, 2006 at 02:57:37PM +0100, David Nečas (Yeti) wrote: [...] > #include Wow. Thanks, David, for your concise example. Regards - -- tomás -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFFZWyrBcgs9XrR2kYRAhu2AJ9y

How to set application icon

2006-11-23 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, i guess this must be a faq, so shame on me. How do I set the application icon (the little thingie some window managers show on the upper-left of teh app windows and on a task bar when iconified?) I already do: gtk_window_set_default_icon_name(

Re: How to set application icon

2006-11-23 Thread Carlo Agrusti
[EMAIL PROTECTED] ha scritto lo scorso 23/11/2006 12:25: > Hi, > > i guess this must be a faq, so shame on me. How do I set the application > icon (the little thingie some window managers show on the upper-left of > teh app windows and on a task bar when iconified?) > > I already do: > > gtk_w

Re: How to set application icon

2006-11-23 Thread Ed Catmur
Carlo Agrusti writes: > [EMAIL PROTECTED] ha scritto lo scorso 23/11/2006 12:25: >>gtk_window_set_default_icon_name("foobar"); >> >> just before gtk_main() and I dropped some png in >> /usr/share/icons/hicolor/48x48/apps/foobar/foobar.png -- but with no >> results. The worse part is that I'

Re: GtkFileSelection vs. GtkFileChooser

2006-11-23 Thread Tshepang Lekhonkhobe
On 11/21/06, Jan-Oliver Wagner <[EMAIL PROTECTED]> wrote: > On Monday 13 November 2006 00:13, Jan-Oliver Wagner wrote: > > the API documentation (section Migrating from GtkFileSelection to > > GtkFileChooser [1]) says that GtkFileSelection has "numerous problems". > > > > What is the rationale that

Re: How to set application icon

2006-11-23 Thread Jim George
Here's how I make it work (not sure if this is the "right" way): int register_stock_icon(GtkIconFactory *icon_factory, const char *name, const char *filename) { GdkPixbuf *pixbuf; gchar *pathname; GError *error = NULL; pathname = g_strdup_printf("%s%s%s", PACKAGE_PIXMA

g_object_set_data

2006-11-23 Thread Guillaume Charhon
Hi, I've some problem with the function g_object_set_data and g_object_get_data When I do guint i,j; int test; i = 4; j = 6; g_object_set_data(G_OBJECT(game->pButton[i][j]), "position_x", GUINT_TO_POINTER(i)); test = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(game->pButton[i][j]), "position_x"

Re: g_object_set_data

2006-11-23 Thread Yeti
On Thu, Nov 23, 2006 at 08:18:42PM +0100, Guillaume Charhon wrote: > When I do > > guint i,j; > int test; > i = 4; > j = 6; > > g_object_set_data(G_OBJECT(game->pButton[i][j]), "position_x", > GUINT_TO_POINTER(i)); > test = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(game->pButton[i][j]), > "pos

Re: g_object_set_data

2006-11-23 Thread Guillaume Charhon
But it's the same button :'( ! David Nečas (Yeti) a écrit : > On Thu, Nov 23, 2006 at 08:18:42PM +0100, Guillaume Charhon wrote: > >> When I do >> >> guint i,j; >> int test; >> i = 4; >> j = 6; >> >> g_object_set_data(G_OBJECT(game->pButton[i][j]), "position_x", >> GUINT_TO_POINTER(i)); >> tes

Re: g_object_set_data

2006-11-23 Thread Yeti
On Thu, Nov 23, 2006 at 08:37:06PM +0100, Guillaume Charhon wrote: > But it's the same button :'( ! Did you really check it's the same object (e.g., printed address, although this is not 100% if the object is destroyed meanwhile) and nothing else set the object data back to 0 -- including things t

Re: g_object_set_data

2006-11-23 Thread Guillaume Charhon
I've checked the adresses, they are not the same. The second button is get from a click, and it should be the same adress... i don't understand... I'm going to make a simple main.c to test, because my project is complicated... Thanks for your help. David Nečas (Yeti) a écrit : > On Thu, Nov 23,

run a new application

2006-11-23 Thread sunzysjzri
hi, how to run a new application in a button's callback function?? sun zhiyong 2006-11-24 [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

run a new application

2006-11-23 Thread Tor Lillqvist
sunzysjzri writes: > how to run a new application in a button's callback function?? system() ? --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: run a new application

2006-11-23 Thread sunzysjzri
>sunzy writes: > > how to run a new application in a button's callback function?? > >system() ? > >--tml > would you like to write it clearly? e.g. my button callback function: void leftbutton_clicked(GtkWidget *widget, gpointer my_data) { } and I want run "/usr/games/same-gnome" for example, how

Re: run a new application

2006-11-23 Thread Michael Torrie
On Fri, 2006-11-24 at 10:26 +0800, sunzysjzri wrote: > >sunzy writes: > > > how to run a new application in a button's callback function?? > > > >system() ? > > > >--tml > > > would you like to write it clearly? > e.g. > my button callback function: > void leftbutton_clicked(GtkWidget *widget, gpo

Re: run a new application

2006-11-23 Thread Tor Lillqvist
sunzysjzri writes: > I want run "/usr/games/same-gnome" for example, how to do it? system ("/usr/games/same-gnome"); --tml ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: run a new application

2006-11-23 Thread Tor Lillqvist
Michael Torrie writes: > there are routines in glib that should help you: > http://developer.gnome.org/doc/API/2.0/glib/glib-Spawning-Processes.html > This is probably the most portable mechanism for running processes. But for somebody who doesn't know about system(), the g_spawn*() functions

Re: run a new application

2006-11-23 Thread Michael Torrie
On Fri, 2006-11-24 at 04:42 +0200, Tor Lillqvist wrote: > Michael Torrie writes: > > there are routines in glib that should help you: > > > http://developer.gnome.org/doc/API/2.0/glib/glib-Spawning-Processes.html > > > This is probably the most portable mechanism for running processes. > > Bu

Re: run a new application

2006-11-23 Thread Jim George
> shell to run the commandline specified. I'm not sure the behavior on > Windows, but I imagine it probably uses the windows shell to execute the > command line. There is no shell in Windows, and there is no argument parsing of the command line, AFAIK _

Makefile

2006-11-23 Thread sunzysjzri
hi, everyone Do you have some convenience tools to make Makefile but "autoconf" and "auto make"? sun zhiyong 2006-11-24 [EMAIL PROTECTED] ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-d

Re: run a new application

2006-11-23 Thread Yeti
On Fri, Nov 24, 2006 at 04:42:52AM +0200, Tor Lillqvist wrote: > > But for somebody who doesn't know about system(), the g_spawn*() > functions probably have too many options to get lost in... Only until the naturally following question: `I run system("/usr/games/same-gnome"); and my program froz