RE: gtk-list Digest, Vol 29, Issue 53
- From: "Shyjumon N." <shyjumon n ttec soc-soft com>
- To: <gtk-list gnome org>
- Subject: RE: gtk-list Digest, Vol 29, Issue 53
- Date: Fri, 29 Sep 2006 12:47:01 +0530
Hi
I am a new GTK+ user, I have a small problem if any one can help
me I will be happy.
How to link a url say something like "www.google.com" from my gtk
program.
The situation is like, I have created a small window and there is a
button "search". If we click the search button I need to open a google
home page.
I have searched and I got something with python.Since I am doing all the
things in C.
So please help me by providing some info on the same.
In my program I am using only gtk+2.0.
Thanks and regds,
With regds,
Shyjumon N
-----Original Message-----
From: gtk-list-bounces gnome org [mailto:gtk-list-bounces gnome org] On
Behalf Of gtk-list-request gnome org
Sent: Friday, September 29, 2006 3:16 AM
To: gtk-list gnome org
Subject: gtk-list Digest, Vol 29, Issue 53
Send gtk-list mailing list submissions to
gtk-list gnome org
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.gnome.org/mailman/listinfo/gtk-list
or, via email, send a message with subject or body 'help' to
gtk-list-request gnome org
You can reach the person managing the list at
gtk-list-owner gnome org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of gtk-list digest..."
Today's Topics:
1. How to autostart X11 from GTK application on Mac OS X
(Derek Piper)
2. possible bug in 'configure' of gtk+-2.8.20 (Sergei Steshenko)
3. Need clarification about gtk_widget_set_events() (DC A)
4. Fwd: How to autostart X11 from GTK application on Mac OS X
(Calvin Ellis)
5. Re: Need clarification about gtk_widget_set_events()
(David Ne?as (Yeti))
6. Re: Fwd: How to autostart X11 from GTK application on Mac OS
X (Hans Oesterholt-Dijkema)
7. Re: Fwd: How to autostart X11 from GTK application on Mac OS
X (Paul Davis)
8. Re: Need clarification about gtk_widget_set_events() (DC A)
9. Re: possible bug in 'configure' of gtk+-2.8.20
(Valdis Kletnieks vt edu)
10. Re: possible bug in 'configure' of gtk+-2.8.20
(David Ne?as (Yeti))
----------------------------------------------------------------------
Message: 1
Date: Thu, 28 Sep 2006 12:06:05 -0400
From: Derek Piper <dcpiper indiana edu>
Subject: How to autostart X11 from GTK application on Mac OS X
To: gtk-list gnome org
Message-ID: <451BF2ED 9060700 indiana edu>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hi,
First of all, apologies if this has already been covered on this
list
but the archive search is down.
I have a GTK application that works under Mac OS X. My goal is
to be
able to run this program from a Mac 'bundle'. I have been able to gather
runtime files for GTK and I can start the program from a shell script
that sets the DYLD_LIBRARY_PATH. I have now been able to use the
'install_name_path' to alter the dynamic library links for my program to
point to relative links in a bundle (Contents/Frameworks). If I run the
program via SSH (and X11 forwarding is on) I am able to run my program
without needing the shell script. Great.
That is until I try running the bundle from within Mac OS X
itself. The
problem comes when the program starts it doesn't have any 'DISPLAY'
environment variable and gtk_init_check returns false. Now, my program
is built to be run either with GUI or without, so it goes and sits in
non-gui mode. :/ .. So, I can run my program from a bundle within Mac OS
X, I just can't get it connected to X.
I tried running X11 before starting my program. No change. I
tried not
having the X libraries within my application's bundle. No change, still
don't get a display. If I set the display variable within a Mac OSX
'Terminal' and X11 is running, my program starts up great.
So, question is, how do I get Mac OS X to a) start X11 for me,
and b)
provide my program the equivalent of the 'DISPLAY' variable so
gtk_init_check will be happy there's an X display there and all will
come to life?
I'd appreciate any help about it. This may not even be the
correct list
to ask such things on (since it's a big Mac related) but since I'm using
GTK for my cross-platform GUI, I thought I'd ask).
Thanks,
Derek
--
Derek Piper - dcpiper indiana edu - (812) 856 0111
IRI 323, School of Informatics
Indiana University, Bloomington, Indiana
------------------------------
Message: 2
Date: Thu, 28 Sep 2006 09:18:50 -0700 (PDT)
From: Sergei Steshenko <sergstesh yahoo com>
Subject: possible bug in 'configure' of gtk+-2.8.20
To: gtk-list gnome org
Message-ID: <20060928161850 22495 qmail web35208 mail mud yahoo com>
Content-Type: text/plain; charset=iso-8859-1
Hello All,
I am testing my tool (see signature) under MEPIS Linux now (kinda
UBUNTU), so,
obviously, I need to install some development packages at system level.
Interestingly enough, 'configure' completed successfully, but 'make'
failed
- because Xrender.h file was missing - here is the file which requires
it:
/mnt/hdd2/sergei/build/gtk+-2.8.20/gdk/x11/gdkdrawable-x11.h:#include
<X11/extensions/Xrender.h>
.
I expect 'configure' to check presence of all needed include files, and
to fail if
any of them is missing.
Is my expectation correct ?
If yes, isn't it a big in 'configure' of gtk+-2.8.20 ?
Thanks,
Sergei.
Applications From Scratch: http://appsfromscratch.berlios.de/
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
------------------------------
Message: 3
Date: Thu, 28 Sep 2006 16:31:51 +0000
From: "DC A" <adc4444 hotmail com>
Subject: Need clarification about gtk_widget_set_events()
To: gtk-list gnome org
Message-ID: <BAY101-F1058304D7476EC1DCD35C2A91B0 phx gbl>
Content-Type: text/plain; format=flowed
Hello! Can anyone kindly clarify when to use gtk_widget_set_events()
routine? I know every widget has some default events. But how can we be
sure
which events are automatically selected by widgets and we don't need to
call
the above mentioned routine? Thanks.
--AD
_________________________________________________________________
Buy what you want when you want it on Sympatico / MSN Shopping
http://shopping.sympatico.msn.ca/content/shp/?ctId=2,ptnrid=176,ptnrdata
=081805
------------------------------
Message: 4
Date: Thu, 28 Sep 2006 13:17:27 -0400
From: "Calvin Ellis" <kyndig gmail com>
Subject: Fwd: How to autostart X11 from GTK application on Mac OS X
To: gtk-list gnome org
Message-ID:
<c23f8f330609281017h198301d9ub744f93eac34aed0 mail gmail com>
Content-Type: text/plain; charset="iso-8859-1"
[forgot to use gtk-list as reply]
>
> I'd appreciate any help about it. This may not even be the
correct
> list
> to ask such things on (since it's a big Mac related) but since I'm
using
> GTK for my cross-platform GUI, I thought I'd ask).
Use Gimp.app approach. They wrapped their application in a shell
script.
The script launches the x11 terminal, catches the display, and then
executes the program ( after setting required env values ) . They also
detail how to package it on their website:
http://gimp-app.sourceforge.net/
This is the approach I use to bundle gtk with my MAC OS X distro - and
the
method of launching. I've been told it works on both Panther and Tiger
versions of OS X without a glitch.
Calvin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /archives/gtk-list/attachments/20060928/8e15e165/attachment.htm
------------------------------
Message: 5
Date: Thu, 28 Sep 2006 19:45:00 +0200
From: David Ne?as (Yeti) <yeti physics muni cz>
Subject: Re: Need clarification about gtk_widget_set_events()
To: gtk-list gnome org
Message-ID: <20060928174500 GM12397 potato chello upc cz>
Content-Type: text/plain; charset=us-ascii
On Thu, Sep 28, 2006 at 04:31:51PM +0000, DC A wrote:
> Can anyone kindly clarify when to use gtk_widget_set_events()
> routine?
Essentially never. Use gtk_widget_add_events() to add
events. Removing default events typically breaks widgets so
you rarely need it (and even then it should suffice to
prevent the particular event handler from running by
handling the event yourself).
Yeti
--
Whatever.
------------------------------
Message: 6
Date: Thu, 28 Sep 2006 20:40:32 +0200
From: Hans Oesterholt-Dijkema <hdnews gawab com>
Subject: Re: Fwd: How to autostart X11 from GTK application on Mac OS
X
To: Calvin Ellis <kyndig gmail com>
Cc: gtk-list gnome org
Message-ID: <451C1720 9080200 gawab com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Wasn't there a native port for Gtk on MacOS X?
Calvin Ellis schreef:
> [forgot to use gtk-list as reply]
>
>
> I'd appreciate any help about it. This may not even be the
> correct list
> to ask such things on (since it's a big Mac related) but since I'm
> using
> GTK for my cross-platform GUI, I thought I'd ask).
>
>
>
> Use Gimp.app approach. They wrapped their application in a shell
> script. The script launches the x11 terminal, catches the display,
> and then executes the program ( after setting required env values ) .
> They also detail how to package it on their website:
> http://gimp-app.sourceforge.net/
>
> This is the approach I use to bundle gtk with my MAC OS X distro - and
> the method of launching. I've been told it works on both Panther and
> Tiger versions of OS X without a glitch.
>
> Calvin
>
>
------------------------------------------------------------------------
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
------------------------------
Message: 7
Date: Thu, 28 Sep 2006 14:45:15 -0400
From: Paul Davis <paul linuxaudiosystems com>
Subject: Re: Fwd: How to autostart X11 from GTK application on Mac OS
X
To: Hans Oesterholt-Dijkema <hdnews gawab com>
Cc: gtk-list gnome org
Message-ID: <1159469115 4749 40 camel localhost localdomain>
Content-Type: text/plain
On Thu, 2006-09-28 at 20:40 +0200, Hans Oesterholt-Dijkema wrote:
> Wasn't there a native port for Gtk on MacOS X?
there is. its usability varies depending on your application. we (the
ardour project) can't use it yet - it is still too unstable and there is
missing functionality. i wish someone would fund serious, aggressive
development of gtk-aqua because it would help out *so* many development
efforts.
------------------------------
Message: 8
Date: Thu, 28 Sep 2006 18:47:45 +0000
From: "DC A" <adc4444 hotmail com>
Subject: Re: Need clarification about gtk_widget_set_events()
To: yeti physics muni cz, gtk-list gnome org
Message-ID: <BAY101-F299583C28233CAC9717C4AA91B0 phx gbl>
Content-Type: text/plain; format=flowed
> > Can anyone kindly clarify when to use gtk_widget_set_events()
> > routine?
>
>Essentially never. Use gtk_widget_add_events() to add
>events. Removing default events typically breaks widgets so
>you rarely need it (and even then it should suffice to
>prevent the particular event handler from running by
>handling the event yourself).
Thanks Yeti. That's all I wanted to know.
--DC
_________________________________________________________________
Don't waste time standing in line-try shopping online. Visit Sympatico /
MSN
Shopping today! http://shopping.sympatico.msn.ca
------------------------------
Message: 9
Date: Thu, 28 Sep 2006 17:12:13 -0400
From: Valdis Kletnieks vt edu
Subject: Re: possible bug in 'configure' of gtk+-2.8.20
To: Sergei Steshenko <sergstesh yahoo com>
Cc: gtk-list gnome org
Message-ID: <200609282112 k8SLCDVU008352 turing-police cc vt edu>
Content-Type: text/plain; charset="us-ascii"
On Thu, 28 Sep 2006 09:18:50 PDT, Sergei Steshenko said:
> /mnt/hdd2/sergei/build/gtk+-2.8.20/gdk/x11/gdkdrawable-x11.h:#include
<X11/extensions/Xrender.h>
> I expect 'configure' to check presence of all needed include files,
and to fail if
> any of them is missing.
>
> Is my expectation correct ?
No. Usually a 'configure' script will run a test case that checks for
*one*
file that indicates something is installed. Apparently, it looks for
some
other file to detect whether the Xrender extension is present and
usable.
What does the config.log say for the Xrender check(s)?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 226 bytes
Desc: not available
Url : /archives/gtk-list/attachments/20060928/8ec0b1ef/attachment.bin
------------------------------
Message: 10
Date: Thu, 28 Sep 2006 23:45:39 +0200
From: David Ne?as (Yeti) <yeti physics muni cz>
Subject: Re: possible bug in 'configure' of gtk+-2.8.20
To: gtk-list gnome org
Message-ID: <20060928214539 GO12397 potato chello upc cz>
Content-Type: text/plain; charset=us-ascii
On Thu, Sep 28, 2006 at 05:12:13PM -0400, Valdis Kletnieks vt edu wrote:
> On Thu, 28 Sep 2006 09:18:50 PDT, Sergei Steshenko said:
>
> >
/mnt/hdd2/sergei/build/gtk+-2.8.20/gdk/x11/gdkdrawable-x11.h:#include
<X11/extensions/Xrender.h>
>
> > I expect 'configure' to check presence of all needed include files,
and to fail if
> > any of them is missing.
> >
> > Is my expectation correct ?
>
> No. Usually a 'configure' script will run a test case that checks for
*one*
> file that indicates something is installed. Apparently, it looks for
some
> other file to detect whether the Xrender extension is present and
usable.
>
> What does the config.log say for the Xrender check(s)?
AFAIK it checks only whether -lXrender makes function
XRenderQueryExtension available and does not check for any
Xrender header file at all.
In other words it doesn't anticipate modular Xorg where
Xrender is a separate library (like everything else) and
it's possible to have any combination of the libraries and
header files installed. For example on Fedora one would get
to this situation by installing libXrender but not
libXrender-devel (although this is not possible without
removal of lots of other Gtk+ dependencies therefore
configure would not pass there).
IMO it should test the presence of header files for each
extension it needs and I suggest to report it as a bug (if
it isn't in bugzilla already).
Yeti
--
Whatever.
------------------------------
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
End of gtk-list Digest, Vol 29, Issue 53
****************************************
The information contained in this e-mail message and in any annexure is confidential to the recipient and may contain privileged information. If you are not the intended recipient, please notify the sender and delete the message along with any annexure. You should not disclose, copy or otherwise use the information contained
in the message or any annexure. Any views expressed in this e-mail are those of the individual sender except where the sender specifically states them to be the views of SoCrates Software India Pvt Ltd., Bangalore.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]