I am using GLists and want to make sure I am freeing all the memory, and
not twice or course.
There are three possible functions for removing an element from the list:
g_list_remove (GList *list, gconstpointer data);
g_list_remove_link (GList *list, GList *llink);
g_list_delete_link (GList *lis
Le Jeudi 18 Août 2005 01:55, Brian J. Tarricone a écrit :
Hi,
> I'm not sure if it matters or not (would have to look at the gtk source,
> and I'm lazy), but you should be using gtk_menu_shell_append() instead
> of gtk_container_add() to add menu items to the menu.
Same result: first level menu
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Emmanuel saracco wrote:
> Hi,
>
> I have a problem with popup submenus callbacks. The following code display
> the
> popup, but the callback is not called:
>
> -
> GtkWidget *menu, *submenu, *item;
>
> menu = gtk_menu_new ();
>
> item = gtk_m
Le Mercredi 17 Août 2005 22:45, John Coppens a écrit :
Hi John,
> The GTK tutorial does things rather differently:
>
> http://www.gtk.org/tutorial/ch-menuwidget.html#SEC-MANUALMENUCREATION
This is not the problem. Same thing following and adapting tutorial example to
my needs.
-> I both build
Thank you for your reply, as can I see you suggest using of
gdk_display_add_client_message_filter
it has parameter
GdkAtom message_type
but there are no information of it usage and how create GdkAtom as message type,
how you use it?
>I did something very similar in my app.
May be you hear a
Gaurav Jain wrote:
Could you give me some tips on how to go about implementing a "naive"
version of such an algorithm? Suppose I have a unicode character,
what's the simplest way to know if it is a LTR directional character
or a RTL directional character?
Try http://crl.nmsu.edu/~mleisher/ucd
On Wed, 17 Aug 2005, Gaurav Jain wrote:
> Could you give me some tips on how to go about implementing a "naive"
> version of such an algorithm? Suppose I have a unicode character,
> what's the simplest way to know if it is a LTR directional character
> or a RTL directional character?
Here it is
On Wed, 17 Aug 2005, Gaurav Jain wrote:
> Hi,
>
> I have a Unicode text, and I need to detect its direction by some BiDi
> algorithm (i.e., whether it is Left-to-right or Right-to-left). For
> example, I need to look for the first "strong" directional character
> in the text, and find out its dir
Alex Levin wrote:
Hi Mario. I did something very similar in my app. Now that you are
using X functions to process those keys, you need to handle them with X
instead of GTK. So, keep your GTK key handler for regular keys, but for
the keys you've grabbed use something like the following.
I'm n
I did this in my program tilda like this:
key_grab (gchar *key) {
XModifierKeymap *modmap;
unsigned int numlockmask = 0;
unsigned int modmask = 0;
gint i, j;
/* Key grabbing stuff taken from yeahconsole who took it from evilwm */
modmap = XGetModifierMapping(dpy);
for (i
Hi Mario. I did something very similar in my app. Now that you are
using X functions to process those keys, you need to handle them with X
instead of GTK. So, keep your GTK key handler for regular keys, but for
the keys you've grabbed use something like the following.
// This function handles a
On Wed, 17 Aug 2005 21:46:02 +0200
Emmanuel saracco <[EMAIL PROTECTED]> wrote:
> Does anybody see what's wrong here?
The GTK tutorial does things rather differently:
http://www.gtk.org/tutorial/ch-menuwidget.html#SEC-MANUALMENUCREATION
John
___
gtk-ap
Hi!
I would like to make possilbe in my gtk+ application using global hot keys,
I found xbindkeys application, and use part of its code.
Usage is simple:
first I call this
void grab_keys(Display *dpy, Keys_t *keys, int nb_keys);
and after that I catch XKeyEvent.
In xbindkeys it works,
in gt
2005/8/17, Faria, Sydney C <[EMAIL PROTECTED]>:
> Is there a way to change the color of the text displayed in an edit box
> after the text has been put into the edit box? I have a need to do range
> checking on edit box entries and would like to change the text color to red
> if the value entered
Hi,
I have a problem with popup submenus callbacks. The following code display the
popup, but the callback is not called:
-
GtkWidget *menu, *submenu, *item;
menu = gtk_menu_new ();
item = gtk_menu_item_new_with_label ("Submenu 1");
gtk_container_add (GTK_CONTAINER (menu), item);
submenu
Is there a way to change the color of the text displayed in an edit box
after the text has been put into the edit box? I have a need to do range
checking on edit box entries and would like to change the text color to red
if the value entered is out of range. I have a similar need to do this with
On August 16, 2005 09:03 pm, John Coppens wrote:
> On Tue, 16 Aug 2005 16:48:35 -0700
>
> Bill Medland <[EMAIL PROTECTED]> wrote:
> > (I wish the API actually documented this stuff). Can you
> > expand on "and such"? I could build an experiment and try
> > to find out, but I would rather hear wha
Thanks Behdad.
On 8/17/05, Behdad Esfahbod <[EMAIL PROTECTED]> wrote:
> On Wed, 17 Aug 2005, Gaurav Jain wrote:
>
> > Hi,
> >
> > I have a Unicode text, and I need to detect its direction by some BiDi
> > algorithm (i.e., whether it is Left-to-right or Right-to-left). For
> > example, I need t
Thanks Matthias for the quick response.
On 8/17/05, Matthias Clasen <[EMAIL PROTECTED]> wrote:
> On Wed, 2005-08-17 at 17:32 +0530, Gaurav Jain wrote:
> > Hi,
> >
> > I have a Unicode text, and I need to detect its direction by some BiDi
> > algorithm (i.e., whether it is Left-to-right or Right-to
On Wed, 2005-08-17 at 17:32 +0530, Gaurav Jain wrote:
> Hi,
>
> I have a Unicode text, and I need to detect its direction by some BiDi
> algorithm (i.e., whether it is Left-to-right or Right-to-left). For
> example, I need to look for the first "strong" directional character
> in the text, and fi
On Wed, Aug 17, 2005 at 12:40:13PM +0200, Iago Rubio wrote:
> On Wed, 2005-08-17 at 20:21 +1000, Nick Watts wrote:
> > Easiest way to convert a GdkColor to its hexadecimal equivalent?
>
> If you mean an #RRGGBB string for web use:
>
> gchar* // please free me when you're done
> gdk_color_to_rgb_
Hi,
I have a Unicode text, and I need to detect its direction by some BiDi
algorithm (i.e., whether it is Left-to-right or Right-to-left). For
example, I need to look for the first "strong" directional character
in the text, and find out its direction. Is there a way I can do that
using some GTK
On Wed, 2005-08-17 at 20:21 +1000, Nick Watts wrote:
> Easiest way to convert a GdkColor to its hexadecimal equivalent?
If you mean an #RRGGBB string for web use:
gchar* // please free me when you're done
gdk_color_to_rgb_hex_string(GdkColor* color)
{
gchar* rgb;
gfloat r, g, b;
found the solution,
the ugly border comes from the gtk_viewport, So first wrap the widget with the
viewport and remove the border for it. then wrap viewport with scroll window
and remove the border[default removed], now you get a scroll window with view
port and no kind of border.
where to u
Easiest way to convert a GdkColor to its hexadecimal equivalent?
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Dear All,
I would like to write a command line application that outputs the current
workspace (under GNOME, I had someting in WindowMaker, but this does not
work in GNOME). I have tried the following:
int main(int argc, char** argv) {
gtk_init(&argc, &argv);
WnckScreen *scree
Nick Watts writes:
> How can I set the cwd to the path my app is in?
Do you mean the process's working directory, or the file selector's
default directory? I'll answer the former.
char buffer[1000];
char *app_dir;
GetModuleFileName (NULL, buffer, sizeof (buffer));
On Wed, 2005-08-17 at 09:36 +0200, Stefan Kost wrote:
> Hi Markus,
> Markus Lausser wrote:
> > Hello,
> >
> > I wonder, in which order should the following tasks be done:
> > * show widget
> > * add widget to parent container
> > * add childs to widget
> >
> > Which order is the fastest (CPU)?
>
On Wed, 2005-08-17 at 16:57 +1000, Nick Watts wrote:
> Writing a GTK app under win32. When I use "Open With" to open
> a file with my app, the current working directory is the one the file
> is in rather than the one my app is in.
>
> How can I set the cwd to the path my app is in?
On installat
> (I wish the API actually documented this stuff). Can you expand
> on "and such"? I could build an experiment and try to find out,
> but I would rather hear what the designers intended it to do.
If you install the devhelp application (which I heartily recommend) you
will find all the signals
Nick,
Use GetCommandLine and extract the path your app is in (might be a bit
tricky though).
Use SetCurrentDirectory to change the current dir.
Ben
Writing a GTK app under win32. When I use "Open With" to open
a file with my app, the current working directory is the one the file
is in rathe
Hi Markus,
Markus Lausser wrote:
Hello,
I wonder, in which order should the following tasks be done:
* show widget
* add widget to parent container
* add childs to widget
Which order is the fastest (CPU)?
First add childs, then show? First show then add to parent? etc...
Or maybe call gtk_widg
32 matches
Mail list logo