Re: g_spawn*() on windows

2014-07-03 Thread Vivien Malerba
Hi! From memory you need a copy the gspawn-win32-helper.exe executable (in your %PATH% I guess). Regards, Vivien On 3 July 2014 14:25, jcup...@gmail.com wrote: Hi all, I'm using g_spawn_command_line_sync() to run a series of command-line programs (actually ImageMagick's convert, if that's

Re: g_spawn*() on windows

2014-07-03 Thread Vivien Malerba
flash on the screen each time. If anyone has any ideas about the command window, I'm all ears :-( John On 3 July 2014 14:26, Vivien Malerba vmale...@gmail.com wrote: Hi! From memory you need a copy the gspawn-win32-helper.exe executable (in your %PATH% I guess). Regards, Vivien

Re: UUID Library for Gnome apps

2013-05-30 Thread Vivien Malerba
Hi! I use the libuuid library (uuid-dev and uuid-runtime packages under Ubuntu). Regards, Vivien On 30 May 2013 07:37, אנטולי קרסנר tomback...@gmail.com wrote: Hello list, I'm writing a desktop app using Gnome technologies and I want to use UUIDs as means of generating URIs for

Re: Where to put graphic elements so I can find them again

2012-09-03 Thread Vivien Malerba
On 2 September 2012 23:04, Frank Cox thea...@melvilletheatre.com wrote: 1. I have a custom graphic that I'm showing as a sort of a placeholder or background in my mailing list program. 2. I see that most program-specific graphics on my computer seem to be located in /usr/share/pixmaps. Is

Re: Examples of ComboBox using an explicit model?

2012-07-31 Thread Vivien Malerba
On 31 July 2012 00:12, James Tappin jtap...@gmail.com wrote: I am currently trying to implement combobox cell renderers in the high-level gtk-fortran code. Unfortunately unlike normal comboboxes where there is the convenience type of GtkComboBoxText this is not available for cell renderers.

Re: How to draw GtkCellRendererCombo in (inside) a custom cell renderer?

2012-06-06 Thread Vivien Malerba
On 6 June 2012 09:51, Osmo Antero osm...@gmail.com wrote: Hello, I wanted to study the GtkCellRendererCombo so I added it directly to the treeview (as column). The combobox is initially hidden, only the text value is shown. The combo becomes visible after user clicks or double-clicks the

Re: Need control of filename entry area in gtkfilechooser

2012-01-13 Thread Vivien Malerba
On 13 January 2012 04:34, Ferdinand Ramirez ramirez.ferdin...@yahoo.comwrote: When I type in the filename into the filename entry area in gtkfilechooser dialog, I want to intercept the text that is entered, modify it and then display it in the filename area. How do I do this? For a regular

Re: maybe known, maybe not...

2012-01-08 Thread Vivien Malerba
On 8 January 2012 03:49, Gary Kline kl...@thought.org wrote: o am trying to have a run button fork off a new gvim and increase a global counter after the first gvim is closed. my main gtk goes dark and nothing responds in this case. i don't know if every distro of linux does this or if it

Re: GLIB for a webserver

2011-12-08 Thread Vivien Malerba
On 8 December 2011 14:13, Marcelo Elias Del Valle - SYSMAP SOLUTIONS - Claro MA-SP - marcelo.va...@claro.com.br wrote: Hello, I am planning to use glib to write a C application server. I just like the library philosophy a lot and that’s why it is my first choice. However, after

Re: g_spawn_async and Windows service

2011-11-06 Thread Vivien Malerba
On 6 November 2011 20:31, Tomáš Šoltys tomas.sol...@range-software.comwrote: Thanks for help, but this is not the case. If I disable service commands in my application, then the command line program gets executed without any problem. This is a good starting point then to understand what

Re: g_spawn_async and Windows service

2011-11-05 Thread Vivien Malerba
On 4 November 2011 23:05, Tomáš Šoltys tomas.sol...@range-software.comwrote: Hi all, I have created a windows service from which I would like to execute a command line program. I am trying to use g_spawn_async function. For to me unknown reason this is not working. Can someone please

Re: GLib with Flex and Bison

2011-10-03 Thread Vivien Malerba
On 3 October 2011 02:37, Craig craigbakal...@verizon.net wrote: Hi, I have spent the past two weeks studying Flex and Bison. It is great stuff! I am about to try to use GLib in a Bison file, mainly calling functions on the GList Object. I have never tried this before. Will it work? Are

Re: g_win32_get_package_installation_directory_of_module()

2011-07-11 Thread Vivien Malerba
On 10 July 2011 21:01, John Emmas john...@tiscali.co.uk wrote: If I write a program using gtk-win32 and I want it to discover its installation folder at run time, I can examine argv (if it's available). Where it's not available however, I can call

Re: how to connect the gnome aplication(gtk+) to database

2011-02-19 Thread Vivien Malerba
On 19 February 2011 09:22, angel kingdom angelkingd...@gmail.com wrote: HI, i am working on a application(project Gutenberg ) which is written in gtk+ and i want to connect this application with database server to store dictionary.i am having the Dictionary in xml format. So,please guide me

Re: Application path

2011-01-18 Thread Vivien Malerba
On 18 January 2011 06:18, John Emmas john...@tiscali.co.uk wrote: Thanks guys. In fact, I only need this for the purpose of calculating a path that's relative to the location of the installed program. It's of less importance on Linux because apps tend to be installed using the same path on

Help needed with offscreen window

2010-11-24 Thread Vivien Malerba
Hi all! I want to create a GtkCellRenderer which renders a GtkWidget (each row of the data model sets a property of the widget and it should render differently). I face the problem that I can't force GTK+ to redraw the widget before I get the pixmap from a GtkOffscreenWidget (that pixmap is used

Re: multithreading gtk app

2010-06-30 Thread Vivien Malerba
On 30 June 2010 02:57, Mick bare...@tpg.com.au wrote: can anyone point me to an explanation (with examples) to help me understand running some dialogs in separate threads. (eg. help, preferences, etc) The general recommendation is to avoid using any GTK+ object from different threads (because

Re: Anyone for CMake?

2010-06-28 Thread Vivien Malerba
From my own experience trying to have Libgda use CMake to compile, CMake still lacks/badly supports some features which are available using the autotools, such as: * convenience libraries * pkg-config support For Libgda, this means I would have to reorganize much of my code, which is a very

Re: Connecting GTK application to a database

2010-02-23 Thread Vivien Malerba
On 23 February 2010 17:16, Tor Lillqvist t...@iki.fi wrote: Can somebody help me with connecting a gtk interface with a backend database, say, Posgres? How does one embed SQL queries in the C code.? The Libgda library provides an uniform access to databases using a GObject oriented API. See

Re: Bringing a GtkWindow to the current desktop with libwnck

2009-07-05 Thread Vivien Malerba
2009/7/3 Jim George jimgeo...@gmail.com Hi all, I'm writing a program that needs to be single-instance. The program will only run on gnome desktop machines. I'm using dbus to ensure this, by having the program try a dbus rpc each time it starts. If there's a running instance, it responds to

Re: Strange GHashTable behaviour

2009-04-21 Thread Vivien Malerba
2009/4/21 Luka Napotnik luka.napot...@gmail.com Hello, I'm experiencing strange GHashTable behaviours when looking up a value throught a string key. I pass the key as a stack-allocated string to the hash table. For most lookups it works flawlessly but sometimes I get an invalid pointer. It

Re: how to add button inside the treview list

2008-12-16 Thread Vivien Malerba
AFAIK, you can't display a button in a treeview column (no GtkCellRenderer exist for this). Also having buttons for each row would make the treeview not as much useable as it is now because each button would consume ressources (memory and X ressources), and it is not how GtkCellRenders are

Re: loading pixmaps from the C source

2008-10-22 Thread Vivien Malerba
2008/10/22 Henri Häkkinen [EMAIL PROTECTED] Hello, I am writing a simple GTK+ 2.0 application which uses the GNU build system. The application opens a status icon on the system tray area and the icon is loaded from a image file. By default, the icon gets installed to the usual location

Re: [gnome-db] how to print selected row in gnome_db_raw_grid?

2008-09-23 Thread Vivien Malerba
2008/9/23 paragasu [EMAIL PROTECTED] how to get the value from the selected row in gnome_db_raw_grid? so i can put it inside gtk_dialog GdaDataModelIter *iter; iter = gnome_db_data_widget_get_current_data (GNOME_DB_DATA_WIDGET (raw_grid); const GValue *value; value =

Re: [gnome-db] how to print selected row in gnome_db_raw_grid?

2008-09-23 Thread Vivien Malerba
2008/9/23 paragasu [EMAIL PROTECTED] gda_data_model_iter_get_value_at is in V4 can i do g_printf(%s, value) ? No, you can't because value is a pointer to a GValue structure, not a string. i am always confuse with the datatype GValue.. how to make sure it is of type char or integer?

Re: [gnome-db] how to print selected row in gnome_db_raw_grid?

2008-09-23 Thread Vivien Malerba
2008/9/23 paragasu [EMAIL PROTECTED] gda_value_stringify(value) assume that i know, the value return is string, then i can simply use this function so i can print (GValue to gchar) the string. but there is no function to conver GValue to gint or gfloat.. Yes, there are g_value_get_int()

Re: how to modify the GnomeDbDataWidgetInfo?

2008-09-19 Thread Vivien Malerba
2008/9/19 Daniel Espinosa [EMAIL PROTECTED] May be could be usefull to modify the code at GnomeDbDataWidgetInfo in order to add properties that allows to hide this objects, in order to share this functionality. Yes, I'll note that on my TODO list. Vivien

Re: how to modify the GnomeDbDataWidgetInfo?

2008-09-17 Thread Vivien Malerba
2008/9/17 paragasu [EMAIL PROTECTED]: by default, gnome_db_form/gnome_db_grid widget create a set of control (GnomeDbDataWidgetInfo). To add or manipulate data. For my application, i only need the update button, i do not need the insert, add or the next record button. How to remove all

Re: how to display photo in the GnomeDbGrid?

2008-08-26 Thread Vivien Malerba
2008/8/26 paragasu [EMAIL PROTECTED]: i am developing gtk application using libgnome-db and postgresql. i store photo as bytea inside one of the table column. how to display the photo using the gnomedbgrid? is it possible to do it? thank you You can have a look at the gnome-db-demo

Re: save image and display image from postgresql

2008-07-23 Thread Vivien Malerba
2008/7/23 paragasu [EMAIL PROTECTED]: i am very new to gtk programming. I am sorry for this beginner questions, but after asking google i fail the get the right answer. I hope this mailing list will help me. anyone can please point me a way on how to save image to postgresql database and

Re: OpenGL interface

2008-01-04 Thread Vivien Malerba
On Jan 3, 2008 8:02 PM, Peter Hildebrandt [EMAIL PROTECTED] wrote: Happy new year everyone, I'd like to use opengl in my gtk application. I've come across GtkGLArea [1] and GtkGLExt [2]. The former appears to be undocumented, while the latter is according to the website no longer actively

Re: Which widget to use for creating a list

2007-06-20 Thread Vivien Malerba
On 6/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, i m new to GTK+ i am working on GTK+ with directfb on embedded platform. i want to have a list of say 4-5 items which can be selected by the direction keys..so that the selection moves to next one as u press the down key or

Re: GtkTreeView: different renderes within one row?

2007-05-31 Thread Vivien Malerba
On 5/30/07, Felix Kater [EMAIL PROTECTED] wrote: hi, I am new to GtkTreeView: Are cell renderers bound to columns or can they change between rows of the same column? AFAIK cell renderers are defined once for each column, and are the same for all the rows, but you can have more than one cell

Re: Plotting graphs

2007-05-24 Thread Vivien Malerba
On 5/24/07, Bluezapper [EMAIL PROTECTED] wrote: Hi, Can someone refer me to an example which plots a simple 2D graph using gtkextra API. thanks, bluezapper. A bit off topic, but there is also the GtkDatabox library out there (I have not tested it though!) Regards, Vivien

Re: Alternative GTK widgets

2007-05-14 Thread Vivien Malerba
On 5/12/07, Shoq [EMAIL PROTECTED] wrote: Pardon my noobness, but I am new to GTK. I had assumed there would be a wealth of open source widgets that descend from the toolkit. I am starting to think this was a very poor assumption on my part. I've not be able to find anything but a few

Re: How add a button widget to a cellrenderer ?

2007-04-13 Thread Vivien Malerba
On 4/11/07, Carlos Savoretti [EMAIL PROTECTED] wrote: Hi! I just need to add a gtkbutton to a pre-existing gtkcellrenderer, (it is the treeview is already created). That button will make some stuff referred to the cell within it is placed, it is because I need to pack it in the same cell.

Re: GtkEntryCompletion on a GtkCellRendererText

2007-03-12 Thread Vivien Malerba
On 3/3/07, Philip Withnall [EMAIL PROTECTED] wrote: Hi all, I've got a table of database rows set up using a GtkTreeView with a GtkListStore backend, and GtkCellRendererTexts for the table cells. This is all working nicely. What I'd like to do is have auto-completion available when editing

Re: Catching the row deleted from a GtkTreeModel implementation

2007-02-09 Thread Vivien Malerba
On 2/9/07, Suma H.S [EMAIL PROTECTED] wrote: how r u deleting the row? It should be either through some key-press or mouse-click, in either case u must select the row before selecting. So...If it is through a key-press, catch the key-press signal and if it is through a mouse-click, catch

Re: black promt window

2007-02-05 Thread Vivien Malerba
On 2/4/07, Patrik Krizan [EMAIL PROTECTED] wrote: Hi, i'm newbie in gtk and i want develop applications on windows xp. i'm running gtk2.0, cygwin and eclipse. i compiled 'hello world' application (exact copied from tutorial) and it works fine. however, if i start it, i get a black promt

Re: Load image from memory.

2007-01-02 Thread Vivien Malerba
On 1/2/07, Eirik Brandtzæg [EMAIL PROTECTED] wrote: I'm trying to include a image in my Free Pascal program under linux. First I loaded the image from a file using gtk_image_new_from_file, but I want to have the picture inside the binary. There is the GdkPixdata related API such as

Re: how to free GList

2006-09-12 Thread Vivien Malerba
On 9/12/06, shibu Alampatta [EMAIL PROTECTED] wrote: Hi all, Pls see the below code structure. how to free the glist at the indicated place? GList * glist=NULL; for(i=0;in;i++) g_list_append(glist,a[i]); // some processing //here want to free the glist g_list_free

Re: Unsolved glib problem

2006-09-11 Thread Vivien Malerba
On 9/9/06, dagang001 [EMAIL PROTECTED] wrote: for ( i=0 ;i4 ;i++) { Person *fred = g_new(Person, 1); /**/ fred-name = ming[i]; fred-shoe_size = i+10; fred-age=60+i; list = g_list_append(list,

Re: Pango Warning

2006-09-11 Thread Vivien Malerba
On 9/11/06, David Nečas (Yeti) [EMAIL PROTECTED] wrote: On Mon, Sep 11, 2006 at 10:51:17AM +0530, shibu Alampatta wrote: I'm using a combo box, code is given below char a[15]; strcpy(a,AAA); glist_append(glist,a); It reports Pango Warning**: Invalid UTF-8 string passed to

Re: Database connection et al

2006-09-08 Thread Vivien Malerba
On 9/7/06, Andrea Zagli [EMAIL PROTECTED] wrote: Il giorno gio, 07/09/2006 alle 18.55 +0530, Sucheta Ghosh ha scritto: Is this possible to connect gtk+ with mysql database or any other database? If answer is yes then how is this possible? for example www.gnome-db.org The website is

Re: How to save/load GtkTreeStore into a file?

2006-09-04 Thread Vivien Malerba
On 8/29/06, chabayo [EMAIL PROTECTED] wrote: Hello all,... ...i try to load a GtkTreeStore from a file that i was saving with gtk_tree_store_foreach calling a function inheritting gtk_tree_model_get_string_from_iter (the 0:0,0:1,1:0:0,... thing) and gtk_tree_model_get . Now it would be

Re: Record/Playback GUI Operations

2006-08-25 Thread Vivien Malerba
On 8/25/06, Sai Laxmi K [EMAIL PROTECTED] wrote: Thanks Mr.Vivien, That site was extremely useful. But I have one problem in configuring. I know this query is not relevant to this post, but I'm not able to find any other means to solve this. When I'm configuring Xnee with Cygwin, it's

Re: Sockets in GTK+?

2006-08-21 Thread Vivien Malerba
On 8/20/06, n3ck [EMAIL PROTECTED] wrote: Hi every1! Im was delphi (win) coder for a while but now i use linux as OS. I really like to code so i choose GTK for build applications on linux. I have been searching for some tutorial, text or articule about how to build cliente/server apps using

Re: Sockets in GTK+?

2006-08-21 Thread Vivien Malerba
On 8/21/06, Chris Sparks [EMAIL PROTECTED] wrote: I went looking fo rGNet and what is odd is that it says this: It is written in C, object-oriented, and built upon GLib. C isn't object-oriented.. The C language does not object, however nothing prevents you from having a Object oriented

Re: GTK Wizard using Notebook

2006-03-22 Thread Vivien Malerba
On 3/22/06, 3saul [EMAIL PROTECTED] wrote: Hi, I'm new to programing, especially gtk. I'm wanting to create a gtk wizard (without a dependency on Gnome - I'm aware of the druid). I thought the best way might be to create a notebook and have forward and back buttons cycle through the tabs.

Re: Containers for containers

2006-01-25 Thread Vivien Malerba
2006/1/25, Ephrem Boudonnet [EMAIL PROTECTED]: hi I'm searching a container which could contain other containers. For example, is that possible to add anywhere several layouts to a window, or to include a layout in another one, in order to use it as sub-windows I could drag and drop. Is

Re: how can include just glib

2005-12-13 Thread Vivien Malerba
2005/12/13, Fernando Apesteguía [EMAIL PROTECTED]: Did you try to make this? #include glib.h And then link with -lglib-2.0 (link against your glib version) You should use `pkg-config --cflags glib-2.0` to get the list of include flags and `pkg-config --libs glib-2.0` to get the list of

Re: Does such a widget exist?

2005-11-17 Thread Vivien Malerba
2005/11/16, Stefano Esposito [EMAIL PROTECTED]: Hi all, i need a widget that displays mobile/fixed points and fixed rectangles and which is capable to catch mouse-click events. Does such a widget exist somewhere in the world? :) I think you can use libgnomecanvas for that job. Regards,

Re: Opening GUI with SSH

2005-10-20 Thread Vivien Malerba
2005/10/20, Suganya [EMAIL PROTECTED]: Hi all, I upgraded my gtk from 2.0 to 2.8. Now I could not open GUI windows of other machines using SSH. Expecting suggestions. Did you try ssh -X ? ___ gtk-app-devel-list mailing list

Re: Wrapped text in GtkTreeView

2005-06-15 Thread Vivien Malerba
On 6/15/05, Slou [EMAIL PROTECTED] wrote: Vivien Malerba wrote: I have list of a very long lines which I want to be accessible to user with no penalty (additional clicking etc.). So the solution is obvious - wrapped text in TreeView, but I found no way to create such CellRenderer. All

Re: Instalation of GTK+ 2.6 alongside GTK+ 2.4

2005-06-09 Thread Vivien Malerba
On 6/8/05, Derrick J Houy [EMAIL PROTECTED] wrote: I run on Fedrora Core 3 which has GTK+ 2.4.13 installed. I want to continue to build my apps against the standard packages included in FC3, but also need to fix some bugs which allow the apps to work with GTK+ 2.6.7. Can anyone help me with

GtkFileChooserButton's mode

2005-05-17 Thread Vivien Malerba
Hi! Does anybody know why the GtkFileChooserButton widget does not accept the GTK_FILE_CHOOSER_ACTION_SAVE mode (or the GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER mode)? Thanks, Vivien ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: GList

2005-05-03 Thread Vivien Malerba
On 5/2/05,[EMAIL PROTECTED] wrote: i think that the result of next code must be 3. but i have 0 if uncomment l=... it's work correctly #include glib.h int main() { GList* l=NULL; //l=g_list_alloc(); g_list_append(l,GINT_TO_POINTER(1));

Re: GtkTreeView SIGNALS

2005-05-03 Thread Vivien Malerba
On 5/3/05, John Coppens [EMAIL PROTECTED] wrote: On Tue, 3 May 2005 10:11:49 -0400 André Pedralho [EMAIL PROTECTED] wrote: I'm trying to use the single click on a GtkTreeView. Is there a way for me? The row-activated signal is activated with a double click... I'm needind one that is

Re: [Beginner] How to write at the end of a GtkTextBuffer ?

2005-04-24 Thread Vivien Malerba
On 4/23/05, Olivier Ramare [EMAIL PROTECTED] wrote: Dear all, I have troubles understanding (and controlling) where to write on a GtkTextBuffer. Here are my variables : SGinfosbuffer=gtk_text_buffer_new(NULL); SGinfos=gtk_text_view_new_with_buffer(SGinfosbuffer);

Callbacks from an idle function

2005-04-08 Thread Vivien Malerba
Hi! I would appreciate having a bit of help concerning a strange problem. In an application I'm writing (Mergeant), I have enabled multi-threading (g_thread_init() and gtk_threads_init()), but I'm using it with one thread only. I have an idle function callback from which I create: * one custom

Re: Callbacks from an idle function

2005-04-08 Thread Vivien Malerba
On Apr 8, 2005 5:26 PM, Peter Bloomfield [EMAIL PROTECTED] wrote: On 04/08/2005 10:22:59 AM, Vivien Malerba wrote: [ snip ] However, still from the same function, I then destroy the custom widget, and the whole application locks. A backtrace from gdb attached to the locked application