GTKSocket Question

2012-12-19 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I have a question about GTKSocket in GTK3, and how I can work around the problem I am having. In GTK 3.4 when the window containing the socket was switched away from, the socket would not be repainted and it would leave the information I had

Re: Re : How can I check if a GtkWidget exists?

2012-07-20 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/20/2012 11:54 AM, Nicolas SOUBEIRAN wrote: Have you try g_object_add_weak_ref ? Weak references are used for notification when an object is finalized. Hope this helps. The GTK_IS_WIDGET macro is useful as well. Kevin - -- Get my public

Re: GTK 3 support status

2011-12-03 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/03/2011 07:41 PM, John Lindgren wrote: Hi, I am wondering what the status of GTK 3 is at this time with regard to bugs reported by application developers. I reported a rather serious bug (https://bugzilla.gnome.org/show_bug.cgi?id=662043)

Re: gtk_selection_data_get_text on drag and drop

2011-05-17 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 05/17/2011 09:07 AM, Thibault Duponchelle wrote: Hi, I have a question about drag and drop handling. Currently, I've add this code to handle drag and drop : gtk_drag_dest_set(emuwin, GTK_DEST_DEFAULT_ALL, NULL, 0, GDK_ACTION_COPY);

Gtk Widget property allow-shrink

2011-04-21 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I have a GTK2 app that works using the allow-shrink property so that I can make a window smaller than it currently is. The problem is that allow-shrink seems to be gone from GTK3 now. So how should I handle this? I tried using

Using GIO to get a file from a website

2011-04-11 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I have some interesting in using GIO to get a file off a website, but I would like to set the user-agent when I do this. So far I have looked a libcurl and libsoup and they both seem to be able to do that. But since GIO is part of glib, it

Queued Drawing update speed changes when Flash video is loaded.

2011-03-23 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I've made an observation on a couple of different machines both with ATI and Intel video cards and I can't seem to figure out why it does it. I have an application that redraws a sequence of 40 rectangles (it is the audio meter in gnome

Re: gtk_combo_box_new_text() API

2011-02-22 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/22/2011 08:46 AM, Allin Cottrell wrote: It seems that you are in fact OK using the GtkComboBox API for this purpose, as in void depopulate_combo_box (GtkComboBox *box) { GtkTreeModel *model = gtk_combo_box_get_model(box);

Hot Keys and alternate keyboard layouts

2011-02-16 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm working with an application and the hot keys I have assigned to the app only seem to work with the english layout (which is default for my keyboard and machine). But if I switch to the alternate (Russian) in this case, they keys still act like

Re: gtk3: FileChooser schema not found

2011-02-14 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/14/2011 04:08 PM, Allin Cottrell wrote: On Sun, 13 Feb 2011, Allin Cottrell wrote: I have glib 2.28.0 installed, along with gtk 2.24.0 and gtk 3.0.0. Calls to the FileChooser in my app work as expected in 2.24, but in 3.0.0 they produce:

Re: File copying

2011-02-05 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/05/2011 11:29 AM, John Emmas wrote: On 4 Feb 2011, at 22:57, Nader Morshed wrote: you might want to take a look at GIO's GFileInfo API. It has a large array of attributes to get/set, depending on the GIOModule being used. Thanks for

Re: Glib mutex doesn't work on Windows

2010-12-16 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/16/2010 11:47 AM, Michael T. wrote: Hi, I'm using glib mutexes on Windows and I think they don't work. I tried to use WIN API mutexes instead and they did work. Short sample program: I initialize the WIN API mutex, then create two

Re: gtk_pixbuf_save and to jpeg with resolution?

2010-12-15 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12/15/2010 08:18 AM, Tim Corio wrote: I am saving a jpeg image from a GdkPixbuf using: gdk_pixbuf_save (pxb, inFile, $gerror, quality, 100, NULL); Can I specify a resolution? I've tried the parameter names dpi, resolution, and Resolution,

Re: GTK+ MPlayer Frontend

2010-10-28 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/28/2010 10:58 AM, Alex Ermakov wrote: Hello. I'm looking for GTK+ developers, who're interested in development of GTK+ based MPlayer frontend. I've started to write such frontend just about a year ago, now it's hosted on sf.net:

Re: GTK+ MPlayer Frontend

2010-10-23 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/22/2010 01:42 AM, Alex Ermakov wrote: Hello. I'm looking for GTK+ developers, who're interested in development of GTK+ based MPlayer frontend. I've started to write such frontend just about a year ago, now it's hosted on sf.net:

Re: GTK+ 2.21.5 released

2010-07-12 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/12/2010 12:02 PM, Matthias Clasen wrote: GTK+ 2.21.5 is now available for download at: * Deprecations: - GtkWindow::allow-grow and ::allow-shrink properties Why are these properties being depreciated? Is there another way of doing this?

Re: GTK+ 2.21.5 released

2010-07-12 Thread Kevin DeKorte
On 7/12/2010 5:45 PM, Javier Jardón wrote: 2010/7/12 Kevin DeKortekdeko...@gmail.com: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/12/2010 12:02 PM, Matthias Clasen wrote: GTK+ 2.21.5 is now available for download at: * Deprecations: - GtkWindow::allow-grow and ::allow-shrink

Question about window resizing

2010-05-11 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have an app where I have been using gtk_window_set_policy that I have it set to allow the window to grow and shrink and I set a specific size on a GtkSocket that is embedded in the window using gtk_widget_set_size_request. I am trying to prepare my

Opacity Question

2010-05-10 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a window that I am drawing, I would like to make the window transparent, but not the widgets contained in the window. Any pointers on how to do that? Thanks, Kevin - -- Get my public GnuPG key from

Re: Receiving a callback on GDK window destroy

2010-01-19 Thread Kevin DeKorte
in plugin.ccp). The source code to gecko-mediaplayer (the browser plugin) is here: http://code.google.com/p/gecko-mediaplayer/source/checkout And the source to gnome-mplayer is here http://code.google.com/p/gnome-mplayer/source/checkout Kevin On 15 January 2010 16:08, Kevin DeKorte kdeko...@gmail.com

Re: Receiving a callback on GDK window destroy

2010-01-19 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/19/10 20:29, Tristan Schmelcher wrote: Actually, after debugging and looking at the code, it seems that gdk_window_foreign_new() first looks up if there is already a GdkWindow for that XID and re-uses it if so (gdk/x11/gdkwindow-x11.c:1008).

Re: Receiving a callback on GDK window destroy

2010-01-15 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/15/10 16:51, Tristan Schmelcher wrote: Hello, I'm a novice Gtk app developer writing a plugin for Firefox and I'm having trouble getting the callbacks that I need from Gtk/Gdk. The way the plugin architecture works is that Firefox creates

Re: Default dir for application data

2009-10-08 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/08/09 16:06, Todor Todorov wrote: Hello list I skimmed the docs for the current stable release on gtk.org, but was not able to find anything relating to my problem. If for example my application is installed globally with DATA_DIR set to

gtk_window_parent issues

2009-05-14 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm having some real trouble with gtk_window_parent when running other some other window managers like kwin or blackbox or icewm The first call to gtk_window_reparent works, then I remove the parent so I can fullscreen the window and then after I

GtkTable Question

2009-02-23 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a dialog that has a fixed size (several tabs on it), and I want to put a list of items on one of the tabs in this dialog. I think a table will do what I want since it is a simple n x 2 layout. But what I want is that last row of the table to

Re: use gvfs mount points

2008-12-21 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dr. Michael J. Chudobiak wrote: Is it normally safe to assume (and choke on a g_assert) that ~/.gvfs mounts are available for non-local-path files (like sftp://whatever...)? Or is that bad behaviour? Is there an elegant way for an app to demand

Accelerators and key maps

2008-12-14 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm having trouble with a menu accelerator My default keyboard is en_US and I have mapped a key using gtk_widget_add_accelerator(GTK_WIDGET(menuitem_showcontrols), activate, accel_group, GDK_c, 0, GTK_ACCEL_VISIBLE); But if I switch to the Dvorak

Problem with g_spawn_async_with_pipes

2008-12-01 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm using GTK/GLIB to spawn an application with g_spawn_async_with_pipes. The command I am using is this ok = g_spawn_async_with_pipes(NULL, argv, NULL, G_SPAWN_SEARCH_PATH,

GtkPaned Question

2008-11-12 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a GtkPaned object that I have added two children too using paned = gtk_vpaned_new(); ' child1 is a vbox with a couple of items in it ' child2 is a vbox with a couple of items in it gtk_paned_pack1(paned,child1,TRUE,TRUE);

GFile with http:// uris

2008-11-07 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is it possible to use a uri in the http://host/file form when using GFile? I tried this in my code and it doesn't seem to work, so I'm wondering what the next best alternative is for this. Thanks, Kevin - -- Get my public GnuPG key from

Status Icons and Tooltip

2008-10-14 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I noticed that with GTK 2.12 that tooltips have been replaced with tooltip and that with tooltip you can set the text displayed to be marked up. Is there a way to set the tooltip of the status icon to use marked up text? Thanks, Kevin - -- Get my

URI's

2008-09-30 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there a glib function to determine if a gchar* is a valid URI or not? Thanks, Kevin - -- Get my public GnuPG key from http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x7D0BD5D1 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux)

Re: URI's

2008-09-30 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 A. Walton wrote: On Tue, Sep 30, 2008 at 1:24 PM, Kevin DeKorte [EMAIL PROTECTED] wrote: Is there a glib function to determine if a gchar* is a valid URI or not? No. See the following bugs: http://bugzilla.gnome.org/show_bug.cgi?id=489862

gtk_volume_button

2008-08-29 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Is there a way to get the GTK Volume Button to use the 16x16 icon? It seems to prefer to use the 22x22 icon, but I would like to have it use the smaller set. Kevin - -- Get my public GnuPG key from

URL to filename conversion

2008-05-12 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there is a GLIB function that takes a name like file:///home/user/name%20with%20spaces.txt and turns it into /home/user/name with spaces.txt Or even something that is close? Thanks, Kevin - -- Get my public GnuPG key from

Re: URL to filename conversion

2008-05-12 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tor Lillqvist wrote: | g_filename_from_uri() | | --tml Tor, Thanks! that is exactly what I was hoping for. Kevin - -- Get my public GnuPG key from http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x7D0BD5D1 -BEGIN PGP SIGNATURE- Version:

Re: How can I find out what is the gtk development version?

2008-04-10 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ying lcs wrote: | Hi, | | How can I find out what is the gtk development version that I am using on linux? ~ pkg-config --modversion gtk+-2.0 Should give you the version Kevin - -- Get my public GnuPG key from

sliding panel

2008-03-24 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'd like to create a panel that slides out of the way, little animation kinda thing and I had something working but gtk really didn't slide it out of the way it just showing the first and then the last. Now I understand that due to performance that

Re: Please help: How to embed a X window in a GTK window?

2008-03-02 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bin Chen wrote: On 3/2/08, Ke Jin [EMAIL PROTECTED] wrote: Dear All, I am working on a project whose code was written in Xlib and now I need to develop a GUI for it. I want to use GTK so I wonder if I could embed the former xlib window into a GTK

Re: 答复: Please help: How to embed a X w indow in a GTK window?

2008-03-02 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ke Jin wrote: Hi Kevin, I have looked into Gtkplug, but the problem is that Gtkplug has to be the toplevel window, which drives the question back to how to make a Gtkplug as a parent window of an X window. I don't quite get your code, is it

Re: Zero padding in g_strdup_printf

2008-02-02 Thread Kevin DeKorte
On Sat, 2008-02-02 at 15:03 -0500, Allin Cottrell wrote: On Sat, 2 Feb 2008, Kevin DeKorte wrote: Hi All, I'm doing a command like this *length = g_strdup_printf(%02i:%02.1f, min, seconds); And if min or seconds is 10 then I don't get the leading zero like I would get

XF86AudioNext

2008-01-03 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm trying to capture the keypress when a user hits a key like XF86AudioNext I have a keyboard handler for my window and I get events for keys like F10 and 'a' and the Ctrl-x keys, but keys like XF86AudioNext don't seem to be passed at all to my

best way to destroy a menu

2007-11-29 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I have a GtkMenu with some items in it and some call backs associated with those GtkMenuItems. I need to delete this menu and recreate it. I tried if (menu != NULL) gtk_widget_destroy(menu); and if (menu != NULL)

Multimedia Keys and capturing them

2007-10-27 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I have a keyboard with some multimedia keys on it and in the Gnome Keyboard Shortcuts editor I have mapped a couple of these keys. I see the volume controls working and I want to hook a couple more of them. However, in my gtk window keyboard

Multimedia Keys

2007-10-23 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I have a keyboard with some multimedia keys on it and in the Gnome Keyboard Shortcuts editor I have mapped a couple of these keys. I see the volume controls working and I want to hook a couple more of them. However, in my gtk window keyboard

Tooltips on GtkTreeView

2007-10-15 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All, Is there an easy way to set a tooltip on a GtkTreeView for the row that the user is hovering their cursor over. It is not guaranteed that the row the user is over is the selected row. Also if the tooltip can be set on row addition that is

pixbuf color count

2007-10-01 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, Once I have loaded a pixbuf using gdk_pixbuf_new_from_file(filename, error); Is there a way to get the number of unique colors in that pixbuf. I looked at the docs for ColorMap and it says it only applies to pseudo color images, but I'm not

Copying a gtk_list_store

2007-09-06 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there a good way to create a full copy of a gtk_list_store that will not be altered if you make changes to the original list store? Thanks, Kevin - -- Get my public GnuPG key from http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x7D0BD5D1

gtk_tree_model_iter_next works, what should I do about prev

2007-08-08 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I've been having some great luck using a GtkListStore, but recently I wanted to see the previous node on the list. Obviously, the gtk_tree_model_iter_prev doesn't exist. So what is the best way to get the previous node. I tried something like

Locking the width of a column in a tree view

2007-07-24 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I have this code... and I would like to make it so that the first column is the column that is stretched and the second column remains the smallest size it can be based on contents and font. Right now the first column stays the same size and

Re: Locking the width of a column in a tree view

2007-07-24 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Nečas (Yeti) wrote: On Tue, Jul 24, 2007 at 10:48:16AM -0600, Kevin DeKorte wrote: I would like to make it so that the first column is the column that is stretched and the second column remains the smallest size it can be based on contents

Re: linux vs. win32: gdk_threads_enter behaving different

2007-06-15 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Felix Kater wrote: Could anyone please explain this behaviour: Imagine a simple window with 1 box and 2 buttons in it. If you press the first button, the second is destroyed, and a newly created button packed into the box. This *works* on linux

gdk_pixbuf_save question

2007-06-01 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is there a way to add a creator tag when saving a jpeg image using gdk_pixbuf_save. For example I would like to put the name of my program in the jpeg image so that I know what created that image. Even setting some if the EXIF data would be ok. Is

Re: GdkImage from GdkPixbuf

2007-05-29 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Nečas (Yeti) wrote: On Tue, May 29, 2007 at 11:04:53AM -0400, Tristan Van Berkom wrote: I've been beating my head against the tree for this one for the last 2 days... so, is there some code out there that will gdk_pixbuf_render_image() ? I

Re: Simple draw question

2007-05-05 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Cédric Lucantis wrote: Le samedi 5 mai 2007 00:48, Kevin DeKorte a écrit : You should never draw anything in an enter/leave callback, but only in an expose event. Also note that creating/destroying a GC each time you draw it is very slow, so

Simple draw question

2007-05-04 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a situation where I need to highlight an eventbox when a user enters it and unhighlight it when the users leaves. I'm using this code but the color I'm drawing in the leave_button_callback is always wrong and varies from run to run with

Re: Aligning label baselines

2007-04-19 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Nečas (Yeti) wrote: for (i = 0; i G_N_ELEMENTS(labels); i++) gtk_table_attach(GTK_TABLE(table), g_object_new(GTK_TYPE_LABEL, label, labels[i], use-markup, TRUE,

Problems with STOCK ICONS

2007-03-15 Thread Kevin DeKorte
Hi, I'm using this snippet icon_theme = gtk_icon_theme_get_default (); play_icon = gtk_icon_theme_load_icon (icon_theme, GTK_STOCK_MEDIA_PLAY, 16, 0, error); if (error != NULL) { printf(error %s\n,error-message); g_error_free(error);

reparent issues

2007-02-19 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All, I have some code that does this where windowid is an X window id. And window is a gtk_window_new(GTK_WINDOW_TOPLEVEL). window_container = gdk_window_foreign_new(windowid); gdk_window_reparent(window-window,window_container,0,0);

GTK Plug - Going Fullscreen

2007-02-05 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a GtkPlug object and is connected to an out of process GtkSocket. I would like to to be able to call gtk_window_fullscreen on my plug object, but it doesn't seem to work. Any ideas on how I should do this. Also, there does not seem to be a way

Re: Using gettext with a GOptionEntry

2007-01-25 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eduardo M KALINOWSKI wrote: This is by no means GTK+-related, and a very basic question regarding gettext usage. Use the N_() macro, something like this: static GOptionEntry entries[] = { {window, NULL, 0, G_OPTION_ARG_INT, embed_window,

g_key_file

2007-01-13 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi All, I have an app that seemed to be working pretty well and then I added support for updating a key_file every minute and all of a sudden my app started leaking memory. I just want to make sure I'm not using the key_file improperly. I seem to be

GIOChannel

2006-10-24 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello all, I'm using the following code fragment ok = g_spawn_async_with_pipes(/tmp, argv, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, std_in, std_out, std_err, NULL);

small widget container

2006-02-18 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm writing an all where I want to use some stock icons for buttons.. I have used the GTK Button for now, but when I add the smallest stock icons the button widget is around 26pix x 26pix.. I have a few icons in a row, like a toolbar, but I

gtk_combo_box_entry_new_text in GTK2 2.4

2005-12-05 Thread Kevin DeKorte
I've written some code that uses gtk_combo_box_entry_new_text, but I have some people that are using gtk2 2.4 (where gtk_combo_box_entry_new_text appears). Any idea how I would implement this functionality in gtk2 2.2? Thanks, Kevin -- Get my public GnuPG key from

Re: GTK+ threaded program segfaults

2005-11-10 Thread Kevin DeKorte
On Thu, 2005-11-10 at 20:09 +0100, Luka Napotnik wrote: Hi. I'm writing a multithreaded GTK+ program and have a problem. The program segfaults at line: window_main-this = gtk_window_new(GTK_WINDOW_TOPLEVEL); What's wrong here? Greets, Luka Works fine on FC4 when I compile it like

Re: Label Alignment

2005-08-03 Thread Kevin DeKorte
On Wednesday 03 August 2005 12:55 pm, Bill Medland wrote: On August 3, 2005 11:37 am, Kevin DeKorte wrote: I'm adding a GTKLabel into a GTKTable Doing this conf_label = gtk_label_new(_(Cache Size:)); gtk_table_attach_defaults(GTK_TABLE(conf_table), conf_label, 0, 1, 3, 4

Window Visibility Signal

2005-07-25 Thread Kevin DeKorte
What Signal is issued when a window becomes visible or invisible. Say I have a window and other window covers it up, is there signal that is emitted or if a window is uncovered? Thanks, Kevin ___ gtk-app-devel-list mailing list

Re: Window Visibility Signal

2005-07-25 Thread Kevin DeKorte
On Monday 25 July 2005 12:22 pm, Tristan Van Berkom wrote: Kevin DeKorte wrote: What Signal is issued when a window becomes visible or invisible. Say I have a window and other window covers it up, is there signal that is emitted or if a window is uncovered? You'll recieve expose-event

Re: Window Visibility Signal

2005-07-25 Thread Kevin DeKorte
On Monday 25 July 2005 12:38 pm, Zeeshan Ali wrote: Hello, Expose is no problem, but what about when it is hid? basically I want to know when the window is hid, so I don't draw to it. If you only want to check if a widget is visible or not at a particular time, you'll need to

Re: Window Visibility Signal

2005-07-25 Thread Kevin DeKorte
On Monday 25 July 2005 02:11 pm, David Necas (Yeti) wrote: On Mon, Jul 25, 2005 at 01:57:02PM -0600, Kevin DeKorte wrote: Nice tip, but unfortunately the expose event does not signal when the object is covered up. Only when revealed. I even hooked event and event-after and nothing

Re: 100 Different Colors

2005-06-21 Thread Kevin DeKorte
You are dividing first and getting an int 0 * G_MAXUINT16 in the line c.green = i/99 * G_MAXUINT16; Multiply first and then divide. you might need a long int tmp to hold the value prior to assigning to c.green. By dividing first you basically are doing a multiply by 0 and that is why it is 0

Re: 100 Different Colors

2005-06-21 Thread Kevin DeKorte
Also c.green = (i/99.0) * G_MAXUINT16; Might work as well. Kevin On Tuesday 21 June 2005 02:08 pm, Kevin DeKorte wrote: You are dividing first and getting an int 0 * G_MAXUINT16 in the line c.green = i/99 * G_MAXUINT16; Multiply first and then divide. you might need a long int tmp

Re: OT: Processor register size

2005-04-11 Thread Kevin DeKorte
Isn't INT the register size by default? sizeof(int) = register size? Kevin On Monday 11 April 2005 07:51 pm, MQ wrote: Does anyone know of a reliable way of obtaining the register size of a processor? I built a GUI that saves/loads binary data and I'm contemplating the option of making it