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
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
-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
-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(
[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
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'
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
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
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"
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
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
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
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,
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
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
>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
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
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
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
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
> 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
_
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
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
23 matches
Mail list logo