Re: can't get touch-events from touchscreen

2015-10-29 Thread Olivier Sessink
2015-10-28 20:05 GMT+01:00 Olivier Sessink : > Hi all, > > I have a PiTFT, a 2.8" capacitive touchscreen for the Raspberry Pi on > raspbian (gtk 3.10.x). It works perfect, except that I only receive button > events, and I fail to receive touch events. Also kinetic scrolling is

can't get touch-events from touchscreen

2015-10-28 Thread Olivier Sessink
value 131 If I call device.get_source() after a button press event, I get If I add touch events with eventbox.add_events(Gdk.EventMask.TOUCH_MASK) and connect to the touch-event I get no callback calls. If I try the example code from http://www.digitaloctave.com/pages/gtk3/tutorial14.htm I don&#

Re: key values on key pressed

2013-11-22 Thread Olivier Brunel
On 11/22/13 16:39, Sergei Kolomeeyets wrote: > Hi, > to write a trivial key-press handler like the following: > > static gboolean key_pressed (GtkWidget *area, GdkEventKey *event, GPtrArray > *ptLinePoints) > { > GError *error; > guint tt; > > if (event->keyval == GDK_Delete) { > ... >

Re: How to prevent windows to be raised at the top of the stack when clicked?

2013-02-21 Thread Olivier Guillion - Myriad
ng things automatically. It decides that any clicked window has to be raised on top (or not), because it thinks that it knows better than me (the programmer) how to manage the application window stacking... Regards, Olivier Olivier Guillion Myriad 26 rue Michel de Montaigne 31200 Toulouse FRANC

Re: How to prevent windows to be raised at the top of the stack when clicked?

2013-02-19 Thread Olivier Guillion - Myriad
iced it in The Gimp), but it seems to be the best result I could expect from this OS. By comparison, this feature is quite straightforward under Windows or MacOS. Thanks ! Olivier Sam Spilsbury wrote: > Hi, > > On Thu, Feb 14, 2013 at 12:17 AM, Olivier Guillion - Myriad > wrote

Re: How to prevent windows to be raised at the top of the stack when clicked?

2013-02-18 Thread Olivier Guillion - Myriad
event that behaviour from the WM by altering the .XDefault/.XResources file Could it be possible to bypass GTK and to access the X structures and events directly? If yes, is it a way to prevent it to bring automatically the clicked window to front ? Regard

Re: How to prevent windows to be raised at the top of the stack when clicked?

2013-02-15 Thread Olivier Guillion - Myriad
le to fix your problem by reconfiguring > your window manager. You may even be able to do this on a window class or > window > name basis which would be done in .Xdefaults. > Olivier Guillion Myriad 26 rue Michel de Montaigne 31200 Toulouse FRANCE WebSite---

Re: How to prevent windows to be raised at the top of the stack when clicked?

2013-02-15 Thread Olivier Guillion - Myriad
find with this function is, when something changes in the stack order, to delete the transient info of each and every window, then rebuild it entirely. It seems to work, but it's not straightforward. I'll tell here the results of my experiments. Regards, Olivier Olivier Guillion Myr

How to prevent windows to be raised at the top of the stack when clicked?

2013-02-13 Thread Olivier Guillion - Myriad
a breakpoint in the "focus_in_event" or "button_press_event" signal callback, the window has already been sent to top before the breakpoint is reached. Is there a way to prevent a clicked window from being automatically sent to top of the stack ? Any help would be great

Re: Synchronization of gtk_tree_store add/remove events

2012-09-19 Thread Olivier Sessink
has finished (*1). why not connect to the "row-deleted" signal of the model, and whenever a row is deleted, look if there is any ongoing communication and kill it? Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org h

Re: gtk_main() at level 0 and gtk_file_chooser_dialog_new

2012-09-19 Thread Olivier Sessink
don't need a second/third etc. main loop. Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: populate gtk tree view from outside

2012-09-12 Thread Olivier Sessink
GtkListStore *treestore; somewhere in the top of fthe file, *not* inside a function. then include this both in main.c and in otherfile.c like #include "main.h" Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnom

Re: populate gtk tree view from outside

2012-09-12 Thread Olivier Sessink
tor, -1); regards, Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Howto make a Gtk.Buttonbox look like the path bar in Gtk.FileChooserDoalog?

2012-09-03 Thread Olivier Sessink
ttings. > > I was wondering whether there is an easy way to turn a GtkButtonBox into > something with this look. have you looked into the GtkFileChooserDialog source, such as http://git.gnome.org/browse/gtk+/tree/gtk/gtkfilechooserwidget.c ? Olivier ___

Re: compile multiple source file

2012-08-31 Thread Olivier Sessink
ed from the file itself, they are not to be called from other files. now create a header file hello.h that contains: void hello( GtkWidget *widget, gpointer data ); and include that in main.c like #include "hello.h" now you can compile each .c file, and then li

Re: button background color in gtk3

2012-08-29 Thread Olivier Sessink
context(GTK_WIDGET(mywidget)); gtk_style_context_add_provider(stc, GTK_STYLE_PROVIDER(cssp), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); regards, Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Trouble maximizing windows on MS Windows

2012-08-28 Thread Olivier Sessink
n screen, and when done your idle callback will be called and it will be maximized. Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Why doesn't my label show up in the window

2012-08-27 Thread Olivier Sessink
nd create a function that pops an item from the list and sends an email. register the function with a timeout with g_timeout_add_full() keep returning TRUE (= call me again) until there is no email to pop from the list. Olivier ___ gtk-app-devel-list mail

Re: Why doesn't my label show up in the window

2012-08-26 Thread Olivier Sessink
w the second dialog, return FALSE (otherwise glib will keep calling the idle function this is how you work with an event loop. you basically you ask glib: once you are ready with everything that is slightly higher priority (like drawing the dialog)

Re: auto refresh file in textview

2012-08-24 Thread Olivier Sessink
le (and not write the complete file once in a while) I would try to append both to the file and to the textbuffer, so you don't need to reload the entire file for every append. Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GTK 2.24.10 memory leak on win32?

2012-07-02 Thread Olivier Sessink
nd --tool=memcheck --num-callers=32 src/your-binary I don't see any obvious problemin your code, but I have no experience with the code you posted. Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman

Re: Accelmap value

2012-06-20 Thread Olivier Sessink
after a bit of testing, it seems to me that the altgr key advertises itself just as to gtk... Olivier 2012/6/19 drkmkzs : > Hi, > > I'm using a gtk application with an accelmap file. All shortcuts with > Control, Shift, or Alt are currently available. > > But if I wan

Re: multiple GTKentry inside a GTKnotebook

2012-06-20 Thread Olivier Sessink
can you post a larger bit of the code? it is difficult to see what's going on. b.t.w. gtk_combo_box_new_text() is deprecated, use gtk_combo_box_text_new() Olivier 2012/6/20 Rudra Banerjee : > Thanks for your reply jjacky. This is a mistake; but does not changeing > the result. > O

Re: Setting the size of tabs in a Notebook?

2012-05-15 Thread Olivier Sessink
must admit that I haven't played with the tab-curvature and tab-overlap style properties yet. Olivier 2012/5/15 Olivier Sessink : > I haven't found a good way, but I'm looking to make them smaller. You > can use a different font in the labels, but with some themes (most >

Re: GTK program (a Gimp plugin) crashes only on Windows

2012-05-08 Thread Olivier Sessink
nce is that the memory allocator on windows works differently, and thus memory errors in your program are less visible on Linux. Use valgrind to find the errors on Linux: G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind --tool=memcheck --num-callers=32 ./myapp Olivier _

Re: GtkTextView Sizing Issues

2012-05-08 Thread Olivier Sessink
gt; horizontally. which gtk version are you working on? 3.0 has serious problem with resizing, many issues have been fixed in 3.2. Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GtkButton bg color

2012-05-08 Thread Olivier Sessink
css_provider_load_from_data(cssp, my_css_string, -1, NULL); stc = gtk_widget_get_style_context(GTK_WIDGET(btv)); gtk_style_context_add_provider(stc, GTK_STYLE_PROVIDER(cssp), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); Olivier ___ gtk-app-devel-list mailing

Re: Table not visible

2012-05-08 Thread Olivier Sessink
I > managed to generate. The problem is in line 88 and 89, either of table > or menu is working. If I comment one line, other one is working. Where I > went wrong? Please show. the window can only hold 1 widget. so add a vbox to the window, add the menubar to the vbox add the table a

Re: memory lead while using Glib regexp

2012-03-05 Thread Olivier Sessink
On 03/05/2012 04:56 PM, Bernhard Schuster wrote: No it does, not I already cross-read it and it looks fine, did you give it a shot with valgrind? no I did not, the comment was based just on your code. What does valgrind report on your code? Olivier Regards Bernhard Schuster Am 5. März

Re: memory lead while using Glib regexp

2012-03-05 Thread Olivier Sessink
rn a newly allocated string? Olivier Thanks a lot! = code below == GRegex* regex_illumina = g_regex_new( "@(.+):(\\d+):(\\d+):(\\d+):(\\d+)#(\\d+)/([12])", G_REGEX_OPTIMIZE, GRegexMatchFlags(0), NULL ); GRegex* regex_casa

Re: Push button with enter

2012-02-22 Thread Olivier Sessink
essed. Is it possible? Right now the button is pressed only if it's selected, but the GtkButton pressed signal is not triggered. gtk_window_set_default() or use the 'activate' signal on the entry Olivier ___ gtk-app-devel-list mailing lis

Re: GtkTree and GtkThread: update and refresh

2011-09-23 Thread Olivier Sessink
nd in *that* function load the data in the treemodel. Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GList empty after iteration?

2011-09-21 Thread Olivier Sessink
ata inside the GQueue is still a list, but the GQueue manages the pointers to the tail and the head for you (so append() and prepend() have equal speed as well). Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: memory leak in PangoLayout?

2011-05-11 Thread Olivier Sessink
On 05/06/2011 09:28 AM, Olivier Sessink wrote: Hi all, valgrind reports a memory leak in the following code: gint widget_get_string_size(GtkWidget * widget, gchar * string) { PangoLayout *layout; gint retval = -1; layout = gtk_widget_create_pango_layout(widget, string); if (layout != NULL

Re: g_idle_add source & memory leaks

2011-05-10 Thread Olivier Sessink
"%09d", val); gtk_label_set_text(l, buffer); return FALSE; } void threadfunc(void *unused) { gint msec = 0; while (1) { msec++; g_usleep(1000); g_idle_add((GSourceFunc)mycbk, GINT_TO_POINTER(msec));

Re: destroying an unparented widget

2011-05-07 Thread Olivier Sessink
h the LD_PRELOAD GObject lifetime debugging tool, see http://blogs.gnome.org/danni/2011/02/17/ld_preload-gobject-lifetime-debugging-tool/ Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: memory leak in PangoLayout?

2011-05-07 Thread Olivier Sessink
On 05/07/2011 12:00 AM, Bill C wrote: On 06/05/11 17:28, Olivier Sessink wrote: Hi all, valgrind reports a memory leak in the following code: gint widget_get_string_size(GtkWidget * widget, gchar * string) { PangoLayout *layout; gint retval = -1; layout = gtk_widget_create_pango_layout(widget

memory leak in PangoLayout?

2011-05-06 Thread Olivier Sessink
) { pango_layout_get_pixel_size(layout, &retval, NULL); g_object_unref(G_OBJECT(layout)); } return retval; } but it seems 100% perfect to me. Why would this leak memory?? anybody a clue? Olivier ___ gtk-app-devel-list mai

Re: large performance difference between gtktextview and gtksourceview

2010-11-05 Thread Olivier Sessink
'm not, so after reading this I'll write a testcase so I can be sure what's going on. Perhaps the difference was coming from another part of the application. regards, Olivier ___ gtk-app-devel-list mailing list gtk-app-

large performance difference between gtktextview and gtksourceview

2010-11-04 Thread Olivier Sessink
performance of gtktextview? regards, Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: DGSEAL_ENABLE: replace direct addressing in statusbar

2010-09-16 Thread Olivier Sessink
unning 2.18.3, lots > of users also, it might be better to wait... I use these in bluefish.h for backwards compatibility. regards, Olivier #if !GTK_CHECK_VERSION(2,18,0) #define gtk_widget_set_can_focus(arg, arg2) do {if (arg2) GTK_WIDGET_SET_FLAGS(arg, GTK_CAN_FOCUS); else GTK_WIDGET

Re: Plot an XML file into a tree with GTK+

2010-08-04 Thread Olivier Sessink
% relevant (it plots only certain attributes of the XML into the tree) but http://bluefish.svn.sourceforge.net/viewvc/bluefish/trunk/bluefish/src/plugin_snippets/snippets_load.c?revision=5862&view=markup loads XML data into a tree regards,

Re: How can I read contents from applications' buffer by programming ?

2010-08-03 Thread Olivier Sessink
s own libraries and API's to do these kind of things. Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Hardware accelerated 2D graphics (with gtk-osx)

2010-08-01 Thread Olivier Sessink
and not in your application, opening your app from the finder, etc. There's also quite some OSX and GTK knowledge there, so it's a good list to join if you're going to do some GTK app programming on a mac. Olivier ___ gtk-app-devel-list m

Re: central 'library' of self-contained real world examples of code for gtkwidgets

2010-06-30 Thread Olivier Sessink
ile resource. php.net has 'user annotations' in its on-line manual. this contains a lot of good examples. it would be cool if library.gnome.org could have such a feature. Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: multithreading gtk app

2010-06-30 Thread Olivier Sessink
received a reply. regards, Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

gtk_action_block_activate fails to block ?!?

2010-06-29 Thread Olivier Sessink
ction), value); gtk_action_unblock_activate(action); } is this a bug or do I misunderstand something? Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

gtk_ui_manager_add_ui_from_string on inline string vs. _from_file

2010-06-25 Thread Olivier Sessink
executable smaller, but involves runtime an extra file seek / open / read / close. Any opinions? Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: using GdkPixbuf icons in GtkUIManager ?

2010-06-24 Thread Olivier Sessink
ar_gui.c?revision=5871&view=markup thanks, Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

using GdkPixbuf icons in GtkUIManager ?

2010-06-24 Thread Olivier Sessink
hus I have to drop GtkItemFactory. How can I use the same icons in GtkUiManager? (FYI: the app is Bluefish, and it has several tabs with HTML toolbars that focus on different areas of HTML) thanks, Olivier ___ gtk-app-devel-list mailing list gtk-app-devel

Re: gthreads and file operations

2010-04-13 Thread Olivier Sessink
What kind of signals? If they are file/socket events, use g_io_add_watch() to do so: http://library.gnome.org/devel/glib/stable/glib-IO-Channels.html the gtk mainloop will then call your callback whenever data is available. regards, Olivier ___ g

Re: gthreads and file operations

2010-04-13 Thread Olivier Sessink
you want to do in this code should be done without threads, it will have more performance and less complexity. Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gthreads and file operations

2010-04-12 Thread Olivier Sessink
ls, they use threads in the background while keeping the diffucult things away for you. regards, Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

script to convert gtkitemfactory translations to gtkuimanager translations?

2010-04-06 Thread Olivier Sessink
Hi all, we still use gtkitemfactory code, and one of the main reasons not to switch to gtkuimanager is the translation strings that all will change. Now I wonder if it is possible to automatically convert the translations? Did anyone ever try that? regards, Olivier

make GtkTextView use CRLF

2010-04-02 Thread Olivier Sessink
Hi all, GtkTextView defaults to linefeeds as newlines, which is good for Unix users, but not the default on DOS/Windows. In a document that has CRLF, gtktextview handles this very good. But an empty document always uses LF, also on windows. Is there a way to set this to CRLF ? Olivier

Re: Searching a GtkTreeView

2010-03-20 Thread Olivier Sessink
very key press in the search box? Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gtk window accelerator process problem.

2010-03-16 Thread Olivier Sessink
what works and what does not? if your focus is in the text widget I guess you get the 'textview copy' action, and if your focus is elsewhere you get the menu callback ? Or is it different? b.t.w.: do your users expect that works differently in a different context? Olivier 2010/3/1

threading choices

2010-03-02 Thread Olivier Sessink
? Is that correct? What are other reasons to choose for one of these approaches? Are there any other important approaches that need attention? regards, Olivier --method #1 - #include #include #include /* this example can call

Re: g_spawn_async_with_pipes on windows

2010-02-11 Thread Olivier Sessink
re any reason to believe that the glib functions are not working correctly? Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

g_spawn_async_with_pipes on windows

2010-02-10 Thread Olivier Sessink
ull path to the executable and having the executable in the path. Does anyone have a clue how this is supposed to work? The documentaion has a lot of references to win32, so I guess this is supposed to work !? Thanks, Olivier ___ gtk-app-devel-list m

Re: GTK clipboard on OS X

2009-07-20 Thread Olivier Guilyardi
all sort of things with the clipboard. There is a forum for support questions. Homepage: http://gtk-osx.sourceforge.net -- Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Copying widgets

2009-07-18 Thread Olivier Guilyardi
ndow on > startup, then clone it for each new window that the user wanted. The caching feature mentioned above should avoid the need for such a cloning feature I believe. But I have no clue whether this is still true with GtkBuilder... -- Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GTK clipboard on OS X

2009-07-18 Thread Olivier Guilyardi
On 07/18/2009 10:39 PM, Olivier Guilyardi wrote: > On 07/18/2009 05:01 AM, Allin Cottrell wrote: >> In some contexts my GTK app offers the user the opportunity to >> copy chunks of output to the clipboard as RTF. This is primarily >> intended for use on MS Windows, but i

Re: GTK clipboard on OS X

2009-07-18 Thread Olivier Guilyardi
ut X11 but the clipboard seems to work ok between my GTK-OSX 2.16 app and native OSX software, although GtkEntry expects Ctrl+* instead of Cmd+* shortcuts. -- Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Single letter accelerator and GtkEntry

2009-04-28 Thread Olivier Guilyardi
Tristan Van Berkom wrote: > On Tue, Apr 28, 2009 at 10:34 AM, Olivier Guilyardi wrote: >> Hi, >> >> I'm working on an audio app. In my menu I have single letters accelerators >> such >> as Z or space, which are 100% needed for consistency with other aud

Single letter accelerator and GtkEntry

2009-04-28 Thread Olivier Guilyardi
o and hack something... When the GtkEntry is focused, wouldn't there be a clean way to make it handle the keys and stop event propagation? -- Olivier Guilyardi / Samalyse ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http:/

Re: Size negotiation and initial top-window size

2008-09-11 Thread Olivier Guilyardi
Nikolaj Thygesen wrote: > Olivier Guilyardi wrote: >> Hi all, >> >> Isn't there a way for a widget to say "I would like this size, but I >> can shrink" >> during the size negotiation process ? >> >> Regards, &g

Size negotiation and initial top-window size

2008-09-09 Thread Olivier Guilyardi
quite good result on X11, but is a bit hackish, and doesn't work very well on Gtk+-Quartz. Isn't there a way for a widget to say "I would like this size, but I can shrink" during the size negotiation process ? Regards, -- Olivier Guilyardi / Samalyse _

Drawing widget parts off-screen

2008-08-28 Thread Olivier Guilyardi
Window instead of my GdkPixmap. This should work, since all the gdk drawing functions I use expect a GdkDrawable. Is it the right way to do this? Isn't drawing on a GdkWindow heavier, because it implies interactions with X11 (or Quartz, whatever)? Regards, -- Olivier Guilyardi / Samalyse _

Re: How to create unique widget when reusing widget id's from a GladeXML object.

2008-08-12 Thread Olivier Guilyardi
rmance, from the liblglade manual : "the XML parse tree is cached to speed up creating another GladeXML object for the same file". Regards, -- Olivier Guilyardi / Samalyse ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GtkMenuItem label

2008-03-04 Thread Olivier Delhomme
2008/3/4, Olivier Delhomme <[EMAIL PROTECTED]>: > > > Hello, > > Is there a convenient way to retrieve the label of a GtkMenuItem > created with gtk_menu_item_new_with_label("my label") ? I found this, which should solve the problem : GtkLabel *label = NULL

GtkMenuItem label

2008-03-04 Thread Olivier Delhomme
Hello, Is there a convenient way to retrieve the label of a GtkMenuItem created with gtk_menu_item_new_with_label("my label") ? <http://library.gnome.org/devel/gtk/stable/GtkMenuItem.html#gtk-menu-item-new-with-label> Thanks, Olivier. _

Re: Insert gap in text buffer by using a tag

2007-11-26 Thread Olivier Delhomme
w (to take its advantages - text marks and tags) but the hex data is usually represented by groups of 2 characters : "DE 05 F4 FF D9". So it would be useful if there is a way to do those gaps between characters (without having an additional space or a tab character). Thanks to any ideas,

Multiple Widget Instantiation

2007-11-21 Thread Olivier Delhomme
beginner's question, but I'm a bit lost, Thanks, regards, Olivier. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Date and time

2007-10-24 Thread Olivier Delhomme
Hello, I'm looking for a function that will return a date and time as a gchar * in a format that is made accordingly to the user preferences. For example 2007/10/24 or 24/10/2007 ... Does this exists in glib/gtk ? thanks, Olivier. ___ gtk-app-

Re: GtkRadioButton sensitivity

2007-10-18 Thread Olivier Delhomme
Ok, forget about this message. All is working correctly. I stupidly didn't call the function that contains the code above !! Sorry for the inconvenience, Olivier. 2007/10/18, Olivier Delhomme <[EMAIL PROTECTED]>: > > Hello, > > I'm trying to make a GtkRadioButton &

GtkRadioButton sensitivity

2007-10-18 Thread Olivier Delhomme
glade_xml_get_widget (xml, "radiobutton"), FALSE); Please note that I've been using this function on other widgets without any problems such as GtkImageMenuItem. am I missing something ? Is there another way to do this ? thanks, Olivier. ___

GtkFileChooser directory selection

2007-07-23 Thread Olivier Delhomme
Hello, Is there any way to select the root directory (eg "c:\" or "/" for instance) from à GtkFilechooser ? Thanks, Olivier. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Customizing GtkFileChooserDialog

2007-05-28 Thread Olivier Guilyardi
Emmanuele Bassi wrote: > On Mon, 2007-05-28 at 17:51 +0200, Olivier Guilyardi wrote: >> >> I need to add some extra saving options to a GtkFileChooserDialog. In this >> purpose I'm trying to access its vbox with: >> >> GtkWidget *label = gtk_button_new_wit

Customizing GtkFileChooserDialog

2007-05-28 Thread Olivier Guilyardi
ffect and produces no error on stderr. I also tried with gtk_box_pack_start() Can I customize it this way or must I create my dialog from scratch using GtkFileChooserWidget and adding extra widgets? Regards, -- Olivier ___ gtk-app-devel-list mailing

Widget for putting Icons like in Gimp

2007-04-02 Thread Olivier GUERINEAU
more than one line. Does anyone know which widget is used and how, for enabling this behaviour ? In advance thanks Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Disable background drawing

2007-03-27 Thread nÿffffe9ant olivier
Hi, for technical reason i want to block background drawing for widgets, i did that for a window but it doesn't work ? can someone help me please. If everything works well when i open a frame upon this one, then on the gtk_frame pixel of previous one must stay. Here is the code : #include gin

Disable background drawing

2007-03-26 Thread nÿffffe9ant olivier
Hi, for technical reason i want to block background drawing for widgets, i did that for a window but it doesn't work ? can someone help me please. If everything works well when i open a frame upon this one, then on the gtk_frame pixel of previous one must stay. Here is the code : #include gin

Re: GtkComboBox and Libglade

2007-03-12 Thread Olivier Delhomme
2007/3/12, Tristan Van Berkom <[EMAIL PROTECTED]>: > > On Mon, 2007-03-12 at 16:21 +0100, Olivier Delhomme wrote: > > Hello, > > > > Is there a way to have a default value automatically selected in a > combobox > > created with libglade ? > > Have

GtkComboBox and Libglade

2007-03-12 Thread Olivier Delhomme
Hello, Is there a way to have a default value automatically selected in a combobox created with libglade ? thanks, Olivier. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Libraries and Mingw

2007-03-06 Thread Olivier Delhomme
2007/3/6, Olivier Delhomme <[EMAIL PROTECTED]>: > > > > 2007/3/6, Chris Sparks <[EMAIL PROTECTED]>: > > > > Are you sure it isn't a path problem? > > > > I thought It was such a problem. But in such a case It would give me an > error s

Re: Libraries and Mingw

2007-03-05 Thread Olivier Delhomme
btool and I'm completly lost. BTW the whole library+program works fine with Linux ! I welcome any ideas. Olivier. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Libraries and Mingw

2007-03-05 Thread Olivier Delhomme
eas tell me. Thanks, Olivier. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: libglade frustration redux

2007-02-17 Thread Olivier Ramare
t I also understand I owe quite a bit to this group. HTH :-) Best, Amities, Olivier ___ 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 an animation ;)

2007-02-09 Thread Olivier Ramare
know how to automate this algorithm since I'm not script-fu writer --- FWIW :-) Olivier ___ 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 an animation ;)

2007-02-08 Thread Olivier Ramare
ge(im9); set_image(im10); } -- That's simpleminded -- HTH still :-) Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Coding systems ?

2007-01-22 Thread Olivier Ramare
probably somewhere. The test !feof(fp) is no better, but the easy and clean code : while( fgets(line ,256, fp)!= NULL){ gtk_text_buffer_insert_at_cursor(...);} does wonder. I promise, next time I'll check my code more thoroughly before incriminating gtk! Best, Amities, Ol

Coding systems ?

2007-01-22 Thread Olivier Ramare
d any other I tried to create since) but I have one file that works :-( -- when I created my debian system, I remember I asked for iso-***-** default coding system. Any help? Many thanks in advance! Best, Amities, Olivier ___ gtk-app-

Re: popup menu problem

2006-09-26 Thread Olivier Abad
Le mardi 26 septembre 2006 à 10:47 +0200, Olivier Abad a écrit : > Hi, > > I'm trying to implement a popup menu, but the items in my menu don't > seem to receive the "activate" signal, so my handler is never called. > > However, it works if I connec

popup menu problem

2006-09-26 Thread Olivier Abad
Can someone tell me what I'm doing wrong ? I'm attaching the code I used (taken from gtk+ documentation). Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

GtkTextBuffer: (1) save? (2) image inside?

2006-08-02 Thread Olivier Ramare
llow background and underlined :-p Yes, a matter of taste :-D But I would prefer an icon at the beginning of this line (still inside this GtkTextBuffer). So how to incorporate an image on this buffer? Best and many thanks in advance! Amities,

A kind of progress bar ?

2006-08-01 Thread Olivier Ramare
--- I didn't find it, but I'm pretty sure I didn't look at the right place :-( Many thanks in advance!! Best, Amities, Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

valgrind and uninitialized variables

2006-07-07 Thread Olivier Ramare
Can anyone tell me how to get rid of this error, or whether it is harmless ?? Best, Amities, Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Label alignment inconsistent between gtk/pango versions?

2006-03-19 Thread Olivier Fourdan
pango 1.12. To illustrate that, I've made a small test program, available here: http://www.xfce.org/~olivier/misc/testalign.tar.gz Then I run the same executable on 3 different gtk+ versions and get different results, screenshot here: http://www.xfce.org/~olivier/misc/testalign.png T

Re: Multi-threaded "gtk_main()"s

2006-01-16 Thread Olivier Sessink
inside the gdk_threads_enter();/gdk_threads_leave(); block, except another call to gdk_threads_enter(); regards, Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

  1   2   >