Re: charset issue on Windows help needed

2014-09-10 Thread zz
app-devel-list > >> > >> Well gchar is a typedef for char so it only supports ascii. I think you'll > >> probably have to use Win32 API calls on Windows to access multibyte file > >> names. > >> > >> Also according to the documentation you

Re: Segmentation fault in creating basic app using GTK+ (with C)

2014-07-14 Thread zz
On Tuesday 01 July 2014 10:39:03 Anoop Neem wrote: Hi, try: p->two = label = gtk_label_new(a); p->one = textEntry = gtk_entry_new() hope this helps, zz ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: GTK+2 - GtkFileChooserButton shows (none) as selected folder and crashes

2013-10-20 Thread zz
remains for “someone”. > > > Did anyone ever experience this bug? Is it reported somewhere? Am I doing > something wrong in my code? > > > > > Thank you! > > Ale Hi, this worked for me on xp and win7. if (folder) { tmp = g_locale_to_utf8(

Re: Invisible GtkImage

2013-06-23 Thread zz
order events." g_signal_connect(G_OBJECT(window), "configure-event", G_CALLBACK(your_callback), NULL); Just an idea. Ciao, ZZ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: open an existing file in buffer and write on it

2013-01-30 Thread zz
uot;); > column = GPOINTER_TO_UINT(columnptr); > > > if (g_ascii_strcasecmp (new_text, "") != 0) > { > model = gtk_tree_view_get_model (treeview); > if (gtk_tree_model_get_iter_from_string (model, &iter, path)) > gtk_list_store_set (GTK

Re: open an existing file in buffer and write on it

2013-01-25 Thread zz
; directly, an approach that I was advised against. So I tried to open the > file in buffer. But this implementation makes the program crash as soon > as enter some value. > > Please help > PS.: at the first glance it seems to me you need a database backend like sqlite to save, store, change and retrieve your data. Ciao, ZZ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: edit and use treeview cell

2013-01-24 Thread zz
code is sometimes a little bit convoluted as I'm self-taught, Ciao, ZZ static void list_edited(GtkCellRendererText * cell, gchar * path_string, gchar * new_text, gpointer user_data) { GtkTreeView *treeview = (GtkTreeView *)user_data; GtkTreeModel *model; GtkTreeIter

Re: oops

2012-02-29 Thread zz
e that > vsalue?? if so, how exactly? > > scratching my head... -gk. > > > > > Hi, gtk_adjustment_get_value () ? Ciao, zz ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: need help getting this right

2012-02-26 Thread zz
"0" and "100" are clear. the rest are displayed as if > torn [??]; i would like lots of vertical space between my three or > four horizontal bars. i've tried the 'separator' bar. no joy, at > least AFAICT. > > thank

Re: gtk 2.24 on Windows

2012-01-27 Thread zz
On Friday 27 January 2012 22:11:52 Allin Cottrell wrote: > For a long time I've built the Windows version of my app against gtk > 2.16 (and included the corresponding runtime in the app's > installer). After hearing of progress with gtk 2.24 on Windows I > thought I'd give that a try, so today I

Re: Strange glibc detected invalid pointer with gtk_entry

2011-07-05 Thread zz
On Tuesday 05 July 2011 16:19:00 Emmanuele Bassi wrote: > On 2011-07-05 at 15:05, z...@excite.it wrote: > > void my_gtk_entry_set_text(GtkEntry *entry, char *data) > > { > > char *tmp; > > > > if (!data) data = ""; > > > > if (g_utf8_validate(data, -1, NULL) != TRUE) { > >

Re: Strange glibc detected invalid pointer with gtk_entry

2011-07-05 Thread zz
ntry *entry, char *data) { char *tmp; if (!data) data = ""; if (g_utf8_validate(data, -1, NULL) != TRUE) { tmp = g_locale_to_utf8(data, -1, NULL, NULL, NULL); gtk_entry_set_text(entry, tmp); xfree(&tmp); } else { gtk_entry_set_text(entry, data); } } Hope this helps. ZZ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: State of GTK+ on Windows (Was: gtk 2 or 3)

2010-10-28 Thread zz
http://www.codeblocks.org/. There you'll find a IDE that can be installed both on linux and windows (and on windows comes with a bundled gcc compiler). For me it worked very well and even allowed to port projetcs from linux to windows with minimal effort. if you prefer a newer version of gcc you can find one with installer at http://tdm-gcc.tdragon.net/. Hope this helps. ZZ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: How to make a simple beep?

2009-03-10 Thread zz
; > Hey All, > > I'm running under Ubuntu 8.10 and want to make a simple beep -- like the > Windows Beep function which takes a frequency (in Hz) and a duration (in > milliseconds). Does anyone have a place to point me? > > TIA > > -Garth > Hi, gdk_beep();

Re: Running on Windows?

2008-12-22 Thread zz
n zip it,hand it to my > teacher so that he can view the application anywhere? > Thanks for your helps and notices:-D HI, maybe what you need is at: http://www.gtk.org/download-windows.html and http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.14/gtk+-bundle_2.14.6-20081216_win32.zip Z

Re: Gtkfilechooser question

2008-08-23 Thread zz
On Saturday 23 August 2008 15:26:55 Martin (OpenGeoMap) wrote: > Hi: > > > > GTK_FILE_CHOOSER_ACTION_SELECT_FILE_FOLDER > > > > action but i doubt the gtk people will implement > > it for me :-). > > > > > I don`t see any reason to implement that in gtk. I believe you have > design your own wid

Gtkfilechooser question

2008-08-23 Thread zz
Hi, i'm facing a problem in the use of the gtk_file_chooser_dialog. I'm developing a frontend for an antivirus scanner and i need to pass to the scanner the path of the file OR folder to scan. At the moment due to the nature of the GtkFileChooserAction typedef enum { GTK_FILE_CHOOSER_ACTION_OPEN

Re: Embedded Gtk+ system: HTML display

2008-07-21 Thread zz
Hi, you could take a look at the old gtk1 based dillo web browser. dillo is quite good for simple html like help or man pages. You can find an enhanced version at http://teki.jpn.ph/pc/software/index-e.shtml Ciao, ZZ On Monday 21 July 2008 21:13:52 John Boncek wrote: > In an embedded ARM-ba

Re: How to make gtktextview automatically scroll to cursor?

2008-05-19 Thread zz
model = gtk_tree_view_get_model(GTK_TREE_VIEW(tree)); > path = gtk_tree_model_get_path(GTK_TREE_MODEL(model), &iter); > gtk_tree_view_scroll_to_cell(GTK_TREE_VIEW(tree), path, NULL, > TRUE, 0.0, 0.0); > gtk_tree_path_free(pa

Re: How to make gtktextview automatically scroll to cursor?

2008-05-19 Thread zz
w_scroll_to_cell(GTK_TREE_VIEW(tree), path, NULL, TRUE, 0.0, 0.0); gtk_tree_path_free(path); } Ciao, ZZ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Locale definitions, dots and commas

2008-03-12 Thread zz
On Wednesday 12 March 2008 17:31:32 Andrew W. Nosenko wrote: > On Wed, Mar 12, 2008 at 6:09 PM, Carlos Pereira > <[EMAIL PROTECTED]> wrote: > > Thanks for your answers, I realize this is not Gtk stuff, > > but certainly affects every GTK app involving decimal numbers... > > > > After setting in

Re: Locale definitions, dots and commas

2008-03-12 Thread zz
On Wednesday 12 March 2008 17:31:32 Andrew W. Nosenko wrote: > On Wed, Mar 12, 2008 at 6:09 PM, Carlos Pereira > <[EMAIL PROTECTED]> wrote: > > Thanks for your answers, I realize this is not Gtk stuff, > > but certainly affects every GTK app involving decimal numbers... > > > > After setting in

Re: GtkFileChooserDialog and GtkFileChooser problem

2007-11-13 Thread zz
On Monday 12 November 2007 23:24:51 [EMAIL PROTECTED] wrote: >> Hi, >> I'm experiencing a little problem with GtkFileChooserDialog and >> GtkFileChooser: I'm writing an app that needs to select a path to operate on >> it. This path could be a file or a directory (to be handled recursively). >> Whil

GtkFileChooserDialog and GtkFileChooser problem

2007-11-12 Thread zz
Hi, I'm experiencing a little problem with GtkFileChooserDialog and GtkFileChooser: I'm writing an app that needs to select a path to operate on it. This path could be a file or a directory (to be handled recursively). While it was possible to select a file OR a directory with the old GtkFileSelect

Re: Editing in GtkTreeView - Automatic Edit and Unwanted Edit Box?

2007-08-19 Thread zz
On Sunday 19 August 2007 18:34:32 David Nečas wrote: > On Sun, Aug 19, 2007 at 05:16:49PM +0100, Tony Cowderoy wrote: > > > > First question - is there any (preferably easy) way with a GtkTreeView > > to make any editable cell that is selected automatically enter edit mode > > and automatically

Re: SIGINT with gtk_main

2007-03-21 Thread zz
On Wednesday 21 March 2007 18:50:38 Michiel Jan Laurens de Hoon wrote: > For my application, I need to run gtk_main but I want to quit gtk_main > when either input is available on stdin or the user presses Ctrl-C. The > former is easy (using g_io_add_watch), but I am not sure what the best > app

Re: Glade-2 and deprecated gdk_pixbuf_unref() call / Glade-3

2006-12-27 Thread zz
On Wednesday 27 December 2006 20:23, Daniel Yek wrote: > Hi, > > Glade-3 was released as stable a few months ago, right? > > I saw http://glade.gnome.org stated that Glade-3 requires GTK+ 2.8. Does it > mean that the resulting application requires GTK+2.8 too? Or was it a > requirement for the

Re: help on scrollbars

2006-08-30 Thread zz
<-Messaggio Originale-> >From: David Neèas \(Yeti\) >Sent: 29/8/2006 6:38:20 PM >To: gtk-app-devel-list@gnome.org >Subject: Re: help on scrollbars > >On Tue, Aug 29, 2006 at 02:11:09PM +0200, [EMAIL PROTECTED] wrote: >> I'm working on an app and I'm facing the need to access the >> button

Re: help on scrollbars

2006-08-30 Thread zz
<-Messaggio Originale-> >From: Paul Pogonyshev >Sent: 29/8/2006 8:25:05 PM >To: gtk-app-devel-list@gnome.org >Cc: [EMAIL PROTECTED] >Subject: Re: help on scrollbars > >[EMAIL PROTECTED] wrote: >> Hi, >> I'm working on an app and I'm facing the need to access the >> button at the end of a

help on scrollbars

2006-08-29 Thread zz
Hi, I'm working on an app and I'm facing the need to access the button at the end of a vertical scrollbar of a scrolled window to do something like a gtk_button_clicked() to ensure that the widget (a treeview) contained in it gets scrolled to the end with whatever screen resolution is used. This

Help about GtkTreeViewColumn

2006-07-24 Thread zz
Hi, I'm developing an app that uses a mysql database so I'm doing a lot of work with tree views. Now I'm wondering if it is possible to align the text in the cells of the single columns of the tree view in the same way you can do it with the headers. gtk_tree_view_column_set_alignment((GtkTreeV

Re: callback and menu item

2006-03-31 Thread zz
On Thursday 30 March 2006 14:49, Jerome Le Saux wrote: > 2006/3/30, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > > On Thursday 30 March 2006 12:15, Jerome Le Saux wrote: > > If you want to do this at program startup you have to call > > OnOpenDskFile by yourself in main() > > > > Ciao, > > Tito >

Re: callback and menu item

2006-03-30 Thread zz
On Thursday 30 March 2006 12:15, Jerome Le Saux wrote: If you want to do this at program startup you have to call OnOpenDskFile by yourself in main() Ciao, Tito > > I want to fill the DirList Widget in the OnOpenDskFile function and to be > displayed in the scrolled_window. > What's wrong ? > >

Re: Question about gtk_file_selection_new

2006-03-19 Thread zz
On Sunday 19 March 2006 14:27, you wrote: Am Sonntag, den 19.03.2006, 11:44 +0100 schrieb [EMAIL PROTECTED]: > > is there a way to make file selection dialog box created with > gtk_file_selection_new > also display hidden files?? gtk_file_chooser_set_show_hidden. I wonder why you need this, thoug

Question about gtk_file_selection_new

2006-03-19 Thread zz
Hi, is there a way to make file selection dialog box created with gtk_file_selection_new also display hidden files?? I RTFM and studied the source but was not able to figure it out. Thanks in advance for your time. Tito ___ gtk-app-devel-list mailin