(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 for
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 installation
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)?
First add
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));
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 *screen
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
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
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;
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
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
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 find out
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-left).
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 to look for
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 =
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
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
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
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 direction.
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
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
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 and
-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 =
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
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
24 matches
Mail list logo