An example of drag-and-drop ?

2005-04-24 Thread Olivier
Dear all, I would like to see an example of programming of a drag-and-drop operation. That would save me lots of time understanding the api :-) Best, Amities, Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

[Newbie] Controlling size of containers?

2005-04-26 Thread Olivier
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

gtk_combo_box_get_active_text fails ???

2005-04-30 Thread Olivier
ect" ends in Segmentation fault ... One full day that I'm looking at that :-( Any help appreciated :-) 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

Complete and Minimal Example of gtk_combo_box_new_text failure??

2005-04-30 Thread Olivier
Dear all, Below is a program that goes to Segmentation fault when any string in the combo_box is selected. Any help would be appreciated! Best, Amities, Olivier --- #include #include #include #include void

Re: Complete and Minimal Example of gtk_combo_box_new_text failure??

2005-04-30 Thread Olivier
! Best, Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Segfault and cheep mend of gtk_combo_box_get_active_text

2005-04-30 Thread Olivier
. Hope that will help you -- and not overcrowed your mbox :-). Best, and thanks for your work! Best, Amities, Olivier (Copy to gtk-app-devel-list@gnome.org for archiving). -Complete and Minimal example #include #include #include #include GtkWidget *window

Re: Segfault and cheep mend of gtk_combo_box_get_active_text

2005-05-01 Thread Olivier
} and selecting answers that user_data is indeed NULL combo is my_combo_box up to cast combo is non NULL instruction "name = gtk_combo_box_get_active_entry..." yields the segfaut. :-( Sunny day on a stubborn script :-) Best, Olivier _

Re: Fwd: help needed in including more than 2 libraries in application

2005-05-07 Thread Olivier
seems to be corrupted). If I replace GTK_WRAP_NONE with GTK_WRAP_CHAR or GTK_WRAP_WORD, all is fine. Any help would be greatly appreciated! Best, Amities, Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/ma

Text_view, scrolled windows and no wrapping of words

2005-05-07 Thread Olivier
ch is extremely severe (lots more calls should be given, but everything seems to be corrupted). If I replace GTK_WRAP_NONE with GTK_WRAP_CHAR or GTK_WRAP_WORD, all is fine. Any help would be greatly appreciated! Best, Amities, Olivier ___ gtk-app

An iconifiable gtk_dialog_window ?

2005-05-11 Thread Olivier
w where my user can set parameters. All work wonderfully fine with minimal code, but I would like something more: -- the popped window cannot be iconified ? I would like to keep it. -- the popped window always remains on top of the base window. Can it go below ? Best, Amities,

GtkTable : a bug in the doc ?

2005-05-13 Thread Olivier
plateform, rows are columns and columns are rows !!! Yes, indeed, absolutely :-) Or am I too sleepy to see through that clearly ? Best, Amities, Olivier From gtk+-2.6.7/docs/reference/gtk/html/GtkTable.html#gtk-table-new ___ gtk-app-devel-list mailing

Re: GtkTable : a bug in the doc ?

2005-05-13 Thread Olivier
ke, though I believe a note could be added to the doc to emphasize on this inversion. Thanks ! Amities, Olivier ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

rows and columns in GtkTable : further comments

2005-05-14 Thread Olivier
it works great :-] ) 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

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

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

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: 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

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: 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: 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

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: 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

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

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: 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

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

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

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

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

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

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

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. ___

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 &

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-

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

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,

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: 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

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

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 _

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 _

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

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: 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

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: 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: 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-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

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: 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

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: 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

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

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

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

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

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-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

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: 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

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

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

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

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: 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: 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: 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: 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

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: 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-

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: 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

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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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) { > ... >

  1   2   >