Re: Windows, Enchant and Aspell

2009-02-08 Thread Enrico Tröger
On Sun, 8 Feb 2009 14:12:20 -0500, Matthew Talbert wrote: >2009/2/8 Enrico Tröger : >> Hi, >> >> I just noticed Tor has built enchant for Windows [1], great job. >> Cool. >> >> Being curious whether it works, I installed aspell and two >> dictionar

Windows, Enchant and Aspell

2009-02-08 Thread Enrico Tröger
Hi, I just noticed Tor has built enchant for Windows [1], great job. Cool. Being curious whether it works, I installed aspell and two dictionaries from their Windows installers, I used the default directory C:\Program Files \Aspell. Unfortunately and not really surprising, libenchant.dll or bett

Re: Gio & memory management

2008-10-11 Thread Enrico Tröger
On Sat, 11 Oct 2008 17:55:41 +0200, nico <[EMAIL PROTECTED]> wrote: >Hi Enrico, > >Thank you for your answer... >I'll try to read more about GError (in fact, i wrote first a program >with GLibmm, and then rewrote the program in GLib to test whether the >memory usage would be the same in pure C,

Re: Gio & memory management

2008-10-11 Thread Enrico Tröger
On Sat, 11 Oct 2008 17:36:00 +0200, Enrico Tröger <[EMAIL PROTECTED]> wrote: And the patch missing in the last mail, sorry. Regards, Enrico -- Get my GPG key from http://www.uvena.de/pub.asc ___ gtk-app-devel-list mailing list gtk-app-deve

Re: Gio & memory management

2008-10-11 Thread Enrico Tröger
On Sat, 11 Oct 2008 14:06:49 +0200, nico <[EMAIL PROTECTED]> wrote: >Hello, > >I wrote a program that list recursively files from a given directory. >I'm impressed by the memory usage of such a program (after one minutes, >it uses more than 100 BM on my /usr/ directory... after 5 minute I >have to

Re: GTK Drag & Filename Drop from other Windows

2008-08-07 Thread Enrico Tröger
On Wed, 6 Aug 2008 14:36:53 +0200, "Norbert Schultz" <[EMAIL PROTECTED]> wrote: Hi, > when I enable a Widget to receive Drops using drag_dest_set with > target entries STRING, text/plain, text/html, > application/x-rootwin-drop (just copied them from an example) I can > copy & paste text snippet

Re: Troubles with gettext 0.17.0 on Windows

2008-06-10 Thread Enrico Tröger
On Tue, 10 Jun 2008 16:09:10 +0300, "Tor Lillqvist" <[EMAIL PROTECTED]> wrote: > > Might this be a Windows 2000 issue? I'm trying this on a German > > Windows 2000 SP4. > > Ah. That is possible. I will have to check. Thanks. And sorry for sending the previous mail only to you (wrong button), thi

Re: Troubles with gettext 0.17.0 on Windows

2008-06-09 Thread Enrico Tröger
On Mon, 9 Jun 2008 23:25:07 +0300, "Tor Lillqvist" <[EMAIL PROTECTED]> wrote: > > I updated my GTK libs for compiling my app on Windows to GTK 2.12.10 > > and the according deps. > > From where exactly did you download this, specifically the package > that contained the msgfmt command? Oops, for

Troubles with gettext 0.17.0 on Windows

2008-06-09 Thread Enrico Tröger
Hi, I updated my GTK libs for compiling my app on Windows to GTK 2.12.10 and the according deps. Since this update, I can't process the .po files anymore. Every .po file I try to compile, give errors like the following: C:\geany_svn\po>\libs\bin\msgfmt.exe -o test.mo de.po de.po:24:1: invalid mu

Re: Disabling print range settings?

2008-05-15 Thread Enrico Tröger
On Thu, 15 May 2008 11:28:56 -0400, Liam R E Quin <[EMAIL PROTECTED]> wrote: > On Thu, 2008-05-15 at 17:00 +0200, Enrico Tröger wrote: > > On Thu, 15 May 2008 09:23:18 -0400, Liam R E Quin <[EMAIL PROTECTED]> > > wrote: > [...] > > > Wouldn't it be b

Re: Disabling print range settings?

2008-05-15 Thread Enrico Tröger
On Thu, 15 May 2008 09:23:18 -0400, Liam R E Quin <[EMAIL PROTECTED]> wrote: > On Thu, 2008-05-15 at 14:33 +0200, Enrico Tröger wrote: > > > is there any way to disable or overwrite the print range in > > GtkPrintSettings? > > > > The implementation of

Disabling print range settings?

2008-05-15 Thread Enrico Tröger
Hi, is there any way to disable or overwrite the print range in GtkPrintSettings? The implementation of printing in my application currently doesn't support a range of pages. So I'd like to disable the selection of such or at least to overwrite the user's choice. I tried this in the begin-print

Re: how to compile only one module from the coreutils source?

2008-05-06 Thread Enrico Tröger
On Tue, 6 May 2008 21:40:23 +0700, "Soulivanh Anothay" <[EMAIL PROTECTED]> wrote: > Hello everybody, > > I have downloaded GNU "coreutils" source, and wondering how to compile > only one module manually? You are on the completely wrong mailing list. This is for GTK not coreutils. > I have looke

DnD into a read-only textview

2008-04-17 Thread Enrico Tröger
Hi, in a dictionary application I have a GtkEntry to enter some text and a GtkTextView to display any results. The GtkTextView is read-only (gtk_text_view_set_editable(textview, FALSE)) because it's only used to display search results. And therefore it can't be used as a target for Drag and Drop.

Re: Printing

2008-02-20 Thread Enrico Tröger
On Wed, 20 Feb 2008 06:31:04 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > >> Enrico Tr?ger wrote: > > For examples see: > > http://www.uvena.de/tmp/cairo/print_pango_linux.pdf (fine) > > and > > http://www.uvena.de/tmp/cairo/print_pango_win32.pdf (broken) > > The link to the windows

Re: Printing

2008-02-19 Thread Enrico Tröger
On Sun, 17 Feb 2008 20:28:49 +0100, Bastiaan Veelo <[EMAIL PROTECTED]> wrote: > Enrico Tröger wrote: > > On Wed, 13 Feb 2008 19:56:05 +0100, Bastiaan Veelo <[EMAIL PROTECTED]> > > wrote: > > > > Hi, > > > > > >> 1) In order to get

Re: Printing

2008-02-16 Thread Enrico Tröger
On Wed, 13 Feb 2008 19:56:05 +0100, Bastiaan Veelo <[EMAIL PROTECTED]> wrote: Hi, > 1) In order to get approximately correctly scaled text I had to specify > a resolution of around 27.2 on the pango context. This value was > determined by trial and error. I suspect I am doing something > funda

Re: Printing

2008-02-13 Thread Enrico Tröger
On Wed, 13 Feb 2008 19:56:05 +0100, Bastiaan Veelo <[EMAIL PROTECTED]> wrote: Hi, > In lack of a complete printing tutorial, I wrote one myself. There are cool. I missed a tutorial too when I was first working with the new printing API. > You will find the code attached, these are the issues:

Re: GtkStatusIcon and Drag and Drop?

2008-01-15 Thread Enrico Tröger
On Tue, 15 Jan 2008 23:20:28 -0700, "Scott Horowitz" <[EMAIL PROTECTED]> wrote: > 2008/1/15 Enrico Tröger <[EMAIL PROTECTED]>: > > I was just playing around with the GtkStatusIcon API and wondered if > > there is any way to use Drag And Drop with a GtkStatusI

GtkStatusIcon and Drag and Drop?

2008-01-15 Thread Enrico Tröger
Hi, I was just playing around with the GtkStatusIcon API and wondered if there is any way to use Drag And Drop with a GtkStatusIcon object? The usual way doesn't work because GtkStatusIcon is a subclass of GObject and not an ordinary GtkWidget. Or is not possible at all because of the tray icon s

Re: Hidden dialogs on Windows after changing a window

2007-12-12 Thread Enrico Tröger
On Fri, 7 Dec 2007 18:31:17 +0100, Enrico Tröger <[EMAIL PROTECTED]> wrote: > Hi, > > the attached sample program creates a GtkWindow and shows a > filechooser dialog. The parent of the dialog is the create window. > When executing, both windows show up. Then I c

Hidden dialogs on Windows after changing a window

2007-12-07 Thread Enrico Tröger
Hi, the attached sample program creates a GtkWindow and shows a filechooser dialog. The parent of the dialog is the create window. When executing, both windows show up. Then I change to another open application and then change back to the simple test program(using the taskbar). And on Linux the fi

Re: How to set background color for a pango layout being printed ?

2007-11-16 Thread Enrico Tröger
On Wed, 17 Oct 2007 08:40:04 +0200, "Miroslav Rajcic" <[EMAIL PROTECTED]> wrote: > On Windows (GTK+ 2.10.11 from http://gladewin32.sourceforge.net/), > when using print preview operation (.emf image format) everything > seems to work, > but I get strange drawing artefacts in the picture. > Individ

Re: How to get PangoFontFamily?

2007-11-15 Thread Enrico Tröger
On Tue, 13 Nov 2007 18:31:21 -0500, Behdad Esfahbod <[EMAIL PROTECTED]> wrote: > On Tue, 2007-11-13 at 18:51 +0100, Enrico Tröger wrote: > > Hi, > > > > I have a PangoFontDescription, created from a font string. Now I > > would like to use pango_font_family_is_m

How to get PangoFontFamily?

2007-11-13 Thread Enrico Tröger
Hi, I have a PangoFontDescription, created from a font string. Now I would like to use pango_font_family_is_monospace() to know whether it is a monospaced font or not. But I don't find a way to get a PangoFontFamily object at all. Any ideas? Regards, Enrico -- Get my GPG key from http://www.uv

Re: Building and packaging for Windows

2007-10-31 Thread Enrico Tröger
On Tue, 30 Oct 2007 19:44:19 -0400, Andrew Smith <[EMAIL PROTECTED]> wrote: > Hello > > I am the author of ISO Master ( http://littlesvr.ca/isomaster/ ). > It's a reasonably simple GTK application. I'd like to make a Windows > version. If possible, without porting the GUI to Win32. I managed to >

Re: Tooltips on GtkTreeView

2007-10-15 Thread Enrico Tröger
On Mon, 15 Oct 2007 23:14:56 +0800, Binary Chen <[EMAIL PROTECTED]> wrote: > On Mon, 2007-10-15 at 09:08 -0600, Kevin DeKorte wrote: > > -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

Re: GtkFileChooserButton bug?

2007-08-19 Thread Enrico Tröger
On Sun, 19 Aug 2007 14:15:17 -0300, "Leonel Freire" <[EMAIL PROTECTED]> wrote: > #include > > int main(int argc, char *argv[]) > { > GtkWidget *window; > GtkWidget *chooser; > > gtk_init(&argc, &argv); > > window = gtk_window_new(GTK_WINDOW_TOPLEVEL); > chooser = gtk_file_c

Re: menuitem activate

2007-05-23 Thread Enrico Tröger
On Wed, 23 May 2007 10:12:31 -0400, "danielg RHCE" <[EMAIL PROTECTED]> wrote: > Legacy code I'm trying to update and I've been out of the programming > thing for a while. > > I have a popup menu with this item in it: > menuitem = gtk_item_factory_get_item (ifactory, "/Refresh > Tree"); gtk_

G_KEY_FILE_KEEP_COMMENTS adds extra newlines

2007-05-22 Thread Enrico Tröger
Hi, please see http://mail.gnome.org/archives/gtk-app-devel-list/2007-January/msg00102.html are there any news? I still have this issue and I don't want to remove the G_KEY_FILE_KEEP_COMMENTS flag. I guess it is a bug but I didn't find a bug report. Should I create one? Or is it maybe already fix

Re: delete-event of GtkWidget

2007-01-22 Thread Enrico Tröger
On Mon, 22 Jan 2007 09:13:03 +0100, "Dan H." <[EMAIL PROTECTED]> wrote: > Enrico Tröger wrote: > > > Yes, I misused gtk_widget_hide and already fixed my code. > > [...] > > > Obviously, I just wondered about the different behaviour of > > diff

Re: delete-event of GtkWidget

2007-01-21 Thread Enrico Tröger
On Sun, 21 Jan 2007 12:24:45 +, [EMAIL PROTECTED] wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Sat, Jan 20, 2007 at 03:52:24PM +0100, Enrico Tröger wrote: > > On Sat, 20 Jan 2007 05:34:27 +, [EMAIL PROTECTED] wrote: > > > > &

Re: delete-event of GtkWidget

2007-01-20 Thread Enrico Tröger
On Sat, 20 Jan 2007 05:34:27 +, [EMAIL PROTECTED] wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Fri, Jan 19, 2007 at 06:52:03PM +0100, Enrico Tröger wrote: > > Hi all, > > > > when I write big dialogs, I create it only once, keep the pointer

delete-event of GtkWidget

2007-01-19 Thread Enrico Tröger
Hi all, when I write big dialogs, I create it only once, keep the pointer to the dialog and show it everytime I need it. In the response callback I just use gtk_widget_hide to let the dialog disappear. This works as expected and all is fine. On my Debian Etch(same for Sarge) I don't need to handl

Re: TreeView to build a table?

2006-12-12 Thread Enrico Tröger
On Tue, 12 Dec 2006 16:35:55 +0300, Eugene Zagidullin <[EMAIL PROTECTED]> wrote: > On Tue, 12 Dec 2006 14:27:12 +0100 > Enrico Tröger <[EMAIL PROTECTED]> wrote: > > ET> Can't find the mentioned the icon view. Can you give me a pointer? > > Somewhere in

Re: TreeView to build a table?

2006-12-12 Thread Enrico Tröger
On Tue, 12 Dec 2006 10:23:00 +0300, Eugene Zagidullin <[EMAIL PROTECTED]> wrote: > On Mon, 11 Dec 2006 23:38:57 +0100 > Enrico Tröger <[EMAIL PROTECTED]> wrote: > > ET> Is there any way to select single cells? > ET> Or should I use another widget? I thought of

TreeView to build a table?

2006-12-11 Thread Enrico Tröger
Hi list, I want to build a dialog for choosing special characters and insert them into a text widget. The reason is to show a list of HTML entities. So, I want a column fpr the real character(e.g. ©), a column for the HTML entity with ascii name(e.g. ©) and a column for the HTML entity with Unico

Re: Source code for gtk-demo

2006-12-06 Thread Enrico Tröger
On Wed, 6 Dec 2006 22:20:00 -0800, "Sai Korada" <[EMAIL PROTECTED]> wrote: Hi, > Whenever an application is created using int main(), it leaves a black > console window open, that just looks as ugly as possible. When running You should have mentioned that you are talking about GTK on windows. Nob

Re: How to get the used style for a widget

2006-12-04 Thread Enrico Tröger
On Mon, 4 Dec 2006 17:18:05 +0300, Eugene Zagidullin <[EMAIL PROTECTED]> wrote: > On Mon, 4 Dec 2006 15:13:56 +0100 > Enrico Tröger <[EMAIL PROTECTED]> wrote: > > ET> how can I get the style which is actually used to draw the > ET> widgets in an applica

How to get the used style for a widget

2006-12-04 Thread Enrico Tröger
Hi, how can I get the style which is actually used to draw the widgets in an application? More preciously, I need to get the foreground colour (resp. the colours for the GtkStateType enum) for a widget. I want to change the foreground colour of this widget(GtkLabel) to red if a file inside my appl

FileChooser: Display folder list by default

2006-10-24 Thread Enrico Tröger
Hi, is there a way to show the folder browser in the FileChooser widget (instanced with GTK_FILE_CHOOSER_ACTION_SAVE) by default? I had a look at the API but I didn't find anything to access the expander in the dialog. I guess there is no way because to keep the default behaviour of the dialog co

Re: How to hidden the Tree View Title bar

2006-09-18 Thread Enrico Tröger
On Mon, 18 Sep 2006 11:44:40 +0800, "stny stny" <[EMAIL PROTECTED]> wrote: > Hi > > I'm using the Gtk Tree View with Gtk List Store to present list of > data(gchar). But the size of Tree view can't display all details. So > i want to hidden the title bar, get more area to present the data. > > I

Re: Change state of a GtkCheckMenuItem w/o signal triggering

2006-07-21 Thread Enrico Tröger
On Fri, 21 Jul 2006 14:06:21 +0200, David Nečas (Yeti) <[EMAIL PROTECTED]> wrote: > > I tried gtk_check_menu_item_set_active() and setting the active > > property with g_object_set(), but in both ways the toggled signal is > > emitted when the state changes(if it is TRUE and I set it to TRUE > >

Change state of a GtkCheckMenuItem w/o signal triggering

2006-07-21 Thread Enrico Tröger
Hi, I look for a way to change the state of a GtkCheckMenuItem so that the toggled signal won't be emitted. I tried gtk_check_menu_item_set_active() and setting the active property with g_object_set(), but in both ways the toggled signal is emitted when the state changes(if it is TRUE and I set

Re: How to keep the check button' checked state

2006-07-09 Thread Enrico Tröger
On Sat, 8 Jul 2006 16:27:07 +0800, "chao yeaj" <[EMAIL PROTECTED]> wrote: > Hello ,everyone > > i have a check button > > i want to manage the check button's check state using > source code and i want no matter how the user click the check > button , the check button keeps

GDK_ACTION_MOVE by default

2006-07-09 Thread Enrico Tröger
Hi, the following code snippet is from Scintilla: gtk_drag_dest_set(GTK_WIDGET(PWidget(wMain)), GTK_DEST_DEFAULT_ALL, clipboardTargets, nClipboardTargets, static_cast (GDK_ACTION_MOVE | GDK_ACTION_COPY)); as you can see, the actions mask is set to move and copy. In the DragDataGet callback the fl

Re: "switch_page" signal from gtk_notebook is fired two times

2006-06-29 Thread Enrico Tröger
On Fri, 30 Jun 2006 01:22:39 +0200, Enrico Tröger <[EMAIL PROTECTED]> wrote: > Hi, > > I have a notebook and connected a callback function > "on_notebook1_switch_page" to the switch_page signal. > > If I put a g_message("test") call in the function, I

"switch_page" signal from gtk_notebook is fired two times

2006-06-29 Thread Enrico Tröger
Hi, I have a notebook and connected a callback function "on_notebook1_switch_page" to the switch_page signal. If I put a g_message("test") call in the function, I see that the function is called two times when I switch from one page to another. I connected the callback only once. Is this a kind

Make duplicate of a complete GtkMenu

2006-06-22 Thread Enrico Tröger
Hi, I'm implementing two GtkMenus, which are identical and inserted in the menubar and in a popup menu. Since I can't reparent the menu, I have to create two menus which are identical. Is there some possibility two copy the complete menu so that I don't have to create two identical menus? This is

GdkModifiers bitmask and GDK_SHIFT_MASK question

2006-05-18 Thread Enrico Tröger
Hi, I have another problem regarding keyboard shortcuts: in my code I set a bitmask in the following way: GdkModifier modifiers = GDK_SHIFT_MASK | GDK_CONTROL_MASK; guint key = GDK_r; So, this should represent Ctrl+Shift+r. In the callback function for a key-press-event I have the following code

Re: Changing (default) keybindings

2006-05-16 Thread Enrico Tröger
On Tue, 16 May 2006 16:46:12 -0300, Eduardo M KALINOWSKI <[EMAIL PROTECTED]> wrote: > Enrico Tröger wrote: > > >On Sun, 14 May 2006 18:59:35 +0200, Enrico Tröger > ><[EMAIL PROTECTED]> wrote: > > > > > > > >>Hi, > >> >

Re: Changing (default) keybindings

2006-05-16 Thread Enrico Tröger
On Sun, 14 May 2006 18:59:35 +0200, Enrico Tröger <[EMAIL PROTECTED]> wrote: > Hi, > > is there an easy way of changing the default keybindings of stock > items? For example in a file menu, a menu item with the stock id > gtk-open gets (on my system) CTRL-O. Can this be ch

Changing (default) keybindings

2006-05-14 Thread Enrico Tröger
Hi, is there an easy way of changing the default keybindings of stock items? For example in a file menu, a menu item with the stock id gtk-open gets (on my system) CTRL-O. Can this be changed and if how? I read a bit through the API, but didn't find a way. Thanks. Enrico -- Get my GPG key from

Re: How to remove F8 keyboard shortcut

2006-04-26 Thread Enrico Tröger
On Wed, 26 Apr 2006 12:26:00 -0700 (PDT), Van H Tran <[EMAIL PROTECTED]> wrote: > > Maybe you can try to connect the "key-press-event" > signal. And in the callback, if it is F8 key, you can > return TRUE, i.e telling the lib that the signal is Thanks. It was too easy ;-). regards, Enrico -- G

How to remove F8 keyboard shortcut

2006-04-26 Thread Enrico Tröger
Hi, the F8 keyboard shortcut seems to be used to give the focus to a GtkPaned widget. How can I remove or disable this shortcut? regards, Enrico -- Get my GPG key from http://www.uvena.de/pub.key Geany, a lightweight IDE using GTK2 - http://geany.uvena.de ___

Re: Cross-platform apps

2006-04-26 Thread Enrico Tröger
On Wed, 26 Apr 2006 16:20:17 +0300, Tor Lillqvist <[EMAIL PROTECTED]> wrote: > Ross Clement writes: > > How much difficulty am I likely to have when I get around to > > porting it? > > > a) None! > > b) No more than a little > > c) A considerable amount of work > > d) The project from hell

Re: How to detect if a glist->data is a GUINT_TO_POINTER for not freeing it ?

2006-04-21 Thread Enrico Tröger
On Fri, 21 Apr 2006 13:01:10 +0200, Colossus <[EMAIL PROTECTED]> wrote: > Enrico Tröger wrote: > > No, it is a simple decimal value. I appended the l to emphasise > > that it is a long int. I'm not completely sure, but I think you can > > safely omit it.

Re: How to detect if a glist->data is a GUINT_TO_POINTER for not freeing it ?

2006-04-21 Thread Enrico Tröger
On Fri, 21 Apr 2006 12:44:48 +0200, Colossus <[EMAIL PROTECTED]> wrote: > Enrico Tröger wrote: > > > give it some value > > *iptr = 100l; > > thanks for replying. Which value is the above ? Hexadecimal one ?? Or > what else ? No, it is a simple decimal value. I

Re: How to detect if a glist->data is a GUINT_TO_POINTER for not freeing it ?

2006-04-21 Thread Enrico Tröger
On Fri, 21 Apr 2006 12:11:48 +0200, Colossus <[EMAIL PROTECTED]> wrote: Hi Colossus, > I have to fill a GList with strings and unsigned long int. > The content of the GList is not always the same so I don't > know wich element is a string to free or a GUINT_TO_POINTER don't use GUINT_TO_POINTER.

Re: Crashes with GTK 2.8.12 and above

2006-04-18 Thread Enrico Tröger
On Wed, 12 Apr 2006 22:38:34 +0100, Chris Vine <[EMAIL PROTECTED]> wrote: > On Tuesday 11 April 2006 22:08, Enrico Tröger wrote: > > Hi, > > > > I have some problems with newer GTK versions(2.8.12 and above) and > > my application(http://geany.uvena.de). It cra

Crashes with GTK 2.8.12 and above

2006-04-11 Thread Enrico Tröger
Hi, I have some problems with newer GTK versions(2.8.12 and above) and my application(http://geany.uvena.de). It crashes with segmentation faults inside GTK. With GTK 2.8.10, it works at its best. I and some other people tested it with GTK 2.8.12, 2.8.13 and 2.8.16 and crashes randomly. This means