Re: Moving from mailing lists to Discourse

2019-02-07 Thread Niels De Graef via gtk-app-devel-list
Hi all, I'm very much in favor! Being able to still use e-mail while also having a convenient and pretty-looking interface is something I look *really* forward to. My only question is: what happens to the old archives? Do we keep them online as-is, or is there a plan to also migrate them? The for

Re: win32 (via Wine): 'image-missing' not present in theme Adwaita

2017-03-04 Thread Norbert de Jonge
Hi Emmanuele, Thanks for your feedback. > You need to generate the icon cache on the > target machine. Assuming "target machine" in this context is the target operating system, how do I generate icon cache on Windows (Wine on Linux, in my case)? >> Note that I don't want to move the executable

Re: win32 (via Wine): 'image-missing' not present in theme Adwaita

2017-03-04 Thread Norbert de Jonge
Hi all, Recently, I wrote: = > I'm running my ported GTK+ application via Wine, and it keeps > throwing: > - > Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: > Icon 'image-missing' not present in theme Adwaita > - > > How can I get rid of this? > > I've already

Re: win32 (via Wine): 'image-missing' not present in theme Adwaita

2017-03-02 Thread Norbert de Jonge
> Also the all the *-from-stock (e.g. gtk_button_new_from_stock) > functions have been deprecated in GTK 3.10 so maybe that’s the issue? Ah, that must be it, yes. I use gtk_image_new_from_icon_name() for menu icons, and now that you mention it these indeed do not show up. So, that must be where it

Re: Mouse events

2017-03-01 Thread Norbert de Jonge
> "button-press-event" occurs outside my window > application? Is there any way to connect an > extern mouse event with my gtk application? So, other people may know more about this, but here's what I can find. You can g_signal_connect() the focus-out-event. https://developer.gnome.org/gtk3/stabl

Re: Gtk-WARNING **: Could not find signal handler

2017-03-01 Thread Norbert de Jonge
> pi@raspberrypi:~ $ sudo apt-get install gmodule-export-2.0 As Tilo wrote, you may need to compile it yourself. A quick search seems to indicate that there is gmodule-no-export-2.0 (no export) and gmodule-2.0 (export). If this is true, you may want to look for gmodule-2.0 instead. norbert # ap

win32 (via Wine): 'image-missing' not present in theme Adwaita

2017-02-28 Thread Norbert de Jonge
Hi, I'm running my ported GTK+ application via Wine, and it keeps throwing: - Gtk-WARNING **: Error loading theme icon 'image-missing' for stock: Icon 'image-missing' not present in theme Adwaita - How can I get rid of this? I've already tried adding usr/share/icons/Adwaita/.../status/im

Re: Programatically activate menu like a mouse click

2017-02-23 Thread Norbert de Jonge
> How can I trigger the menu activation (like a mouse click does) ? I would guess with: https://developer.gnome.org/gtk3/stable/GtkMenu.html#gtk-menu-popup-at-widget It's available for GTK+ 3.22 and up, so I cannot test it to verify. This should tell you your GTK+ version: $ pkg-config --modversi

Re: Weather API

2017-02-22 Thread Norbert de Jonge
> gnome-weather [...] I can i use this libraries with C? I think, in theory, the GWeather Reference Manual... https://developer.gnome.org/libgweather/stable/ ...should have information about its C functions in the Functions sections. But they are empty, e.g.: https://developer.gnome.org/libgweathe

Re: textview widget selection buffer_select_range is cleared when dialog closes (intermittently?)

2017-02-22 Thread Norbert de Jonge
> > I have a textview widget being used in an editor where an > > incremental search is performed. [...] I can't help you, but after seeing some of your functions I'm wondering... Setting the search direction (backwards, forwards), setting/toggling case sensitivity (yes, no), and moving the sele

Re: want to capture a mouse click in an Entry

2017-02-18 Thread Norbert de Jonge
> I have an gtk_entry [...] and i would like to capture clicks > in the entry [...] depending on what modifier keys are held You can use g_signal_connect (..., "button_press_event", G_CALLBACK (Function), NULL); Then in Function, check if (event->button.state == GDK_SHIFT_MASK) {} else {}. Also do

Re: Removing entries from EntryCompletion

2017-02-12 Thread Norbert de Jonge
> Is seems to me that the easiest way for the user to > indicate to the GUI that a particular suggestion > should be removed would be via the delete button > whilst that suggestion is highlighted. As soon as you click anywhere outside the area with suggestions (matching entries), the overview of s

Re: issue with drawing graph in GTK

2017-02-12 Thread Norbert de Jonge
> I am using below code for drawing two graphs from same data. > [...] > please let me know if more information is required. If the problem persists and you've been unable to find help, I suggest you create and share with us a short, self contained example program that demonstrates the graph probl

Re: GtkPrintOperation; request for assistance

2017-02-10 Thread Norbert de Jonge
> For a simple printing example in C this is my try at it. > > https://github.com/cecashon/OrderedSetVelociRaptor/blob/master/Misc/Csamples/print_buffer1.c Much appreciated Eric. A question about this code. When I use, for example, the gedit text editor, its File->Print... dialog includes a "Pa

Re: Identifying monitors

2017-02-09 Thread Norbert de Jonge
> I save preferences per monitor I think giving us more context might be useful. What kind of things do you save per monitor, and why? These are not things you could recreate by scaling and positioning based on detected monitor dimensions? If we're assuming monitors can be arbitrarily plugged in

Re: What does "Pango-CRITICAL **: pango_layout_get_cursor_pos: assertion 'index >= 0 && index <= layout->length' failed" mean?

2017-02-08 Thread Norbert de Jonge
> It did not solve the Problem, [...] Before I e-mailed my response I locally created a program that included the function your posted. Double clicking the bottom field threw the error you mentioned. After modifying the code as I described in my previous post, the warning on the console disappeare

Re: GtkPrintOperation; request for assistance

2017-02-08 Thread Norbert de Jonge
Hi Emmanuele, Thank you for your reply. > [...], instead of generating a massive string and then > sending it to lpr, [...] I'm slightly confused, is that a description of what my code is currently doing? If it is: I was unaware that the code is generating a massive string. My intention and und

Re: What does "Pango-CRITICAL **: pango_layout_get_cursor_pos: assertion 'index >= 0 && index <= layout->length' failed" mean?

2017-02-08 Thread Norbert de Jonge
> keybuf = gtk_entry_buffer_new ("Not yet generated", 45); https://developer.gnome.org/gtk3/stable/GtkEntryBuffer.html#gtk-entry-buffer-new The second parameter of gtk_entry_buffer_new() specifies the number of characters in the string. Either change 45 to 17 or to -1. Best regards, Norbert ___

GtkPrintOperation; request for assistance

2017-02-06 Thread Norbert de Jonge
Hi all, Yesterday, I finished the migration of a 16+ year old GTK+ 1.2 application to GTK+ 3.18. The application is Ggradebook, the official GNU gradebook. -- Websites: http://www.norbertdejonge.nl/Ggradebook/ https://www.gnu.org/software/ggradebook/ Changelog: http://www.norbertdejonge.

Re: How to find replacements for deprecated functions

2016-11-30 Thread Erik de Castro Lopo
has been deprecated? Erik -- ------ Erik de Castro Lopo http://www.mega-nerd.com/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

How to find replacements for deprecated functions

2016-11-30 Thread Erik de Castro Lopo
cking on? Erik -- ------ Erik de Castro Lopo http://www.mega-nerd.com/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Re[2]: argv

2016-04-16 Thread Errol van de l'Isle
> _pascal was used for older 16-bit Windows programs. > _stdcall is used for newer 32-bit Windows programs. > _cdecl is the defacto standard for all main() functions *declared* in > C. > > All three conventions use the same stack parameter order of right-to- > left. Pascal uses left to right. “I

Re: Re[2]: argv

2016-04-16 Thread Errol van de l'Isle
> 1) The initial handling of argc and argv are not done by your > application but > by the linker. Incorrect. The linker has nothing to do with argc and argv. > 2) In C, argc and argv are on the stack, ready to be used, but not > necessarily > in assemblers Yes and no :) It depends on what the sta

Re: Re[2]: Re[2]: argv

2016-04-16 Thread Errol van de l'Isle
> Yes, I have a test program and it is the one I am debugging, and no, > it won't Is this test program in C and uses GTK so that you can confirm that you are not getting any command line sent to the application. This way you could narrow down where the error is. If the C test program gets the argu

Re: Re[2]: argv

2016-04-15 Thread Errol van de l'Isle
> 1) It uses the 64-bit Linux libraries whereas I am using the 32-bit > Win Should not really matter > 2) GCC assembly language sucks :^) It uses AT&T syntax which many think is not nice to read. > 3) Despite #2 above, I noticed something very peculiar about the > disassembly > code. For argv, GC

Re: GTK free function doesn't appear to have any affect.

2013-06-17 Thread dE
On 06/16/13 21:35, Chris Vine wrote: On Sun, 16 Jun 2013 12:28:52 +0530 dE wrote: Apart from that, in the free_ptr? Does memory get freed for anyone else? #include #include #define COLS 200 void free_ptr ( GtkListStore * ); int main ( ) { gtk_init( NULL, NULL ); int i, j

Re: GTK free function doesn't appear to have any affect.

2013-06-16 Thread dE
On 06/16/13 21:35, Chris Vine wrote: On Sun, 16 Jun 2013 12:28:52 +0530 dE wrote: Apart from that, in the free_ptr? Does memory get freed for anyone else? #include #include #define COLS 200 void free_ptr ( GtkListStore * ); int main ( ) { gtk_init( NULL, NULL ); int i, j

Re: GTK free function doesn't appear to have any affect.

2013-06-16 Thread dE
On 06/16/13 00:40, Allin Cottrell wrote: On Sat, 15 Jun 2013, dE wrote: On 06/15/13 14:24, dE wrote: Yes, I realized that over time, but there appears to be something wrong with g_object_unref or in general all GTK free functions on my system. In this piece of code -- #include #include

Re: GTK free function doesn't appear to have any affect.

2013-06-15 Thread dE
On 06/15/13 14:24, dE wrote: On 06/15/13 03:35, Chris Vine wrote: On Fri, 14 Jun 2013 23:03:55 +0530 dE wrote: On 06/14/13 22:09, Chris Vine wrote: On Fri, 14 Jun 2013 21:41:05 +0530 dE wrote: On 06/14/13 17:02, Matthias Clasen wrote: On Fri, Jun 14, 2013 at 3:27 AM, dE wrote: I was

Re: GTK free function doesn't appear to have any affect.

2013-06-15 Thread dE
On 06/15/13 03:35, Chris Vine wrote: On Fri, 14 Jun 2013 23:03:55 +0530 dE wrote: On 06/14/13 22:09, Chris Vine wrote: On Fri, 14 Jun 2013 21:41:05 +0530 dE wrote: On 06/14/13 17:02, Matthias Clasen wrote: On Fri, Jun 14, 2013 at 3:27 AM, dE wrote: I was monitoring the memory usage

Re: GTK free function doesn't appear to have any affect.

2013-06-14 Thread dE
On 06/14/13 23:14, Tristan Van Berkom wrote: On Sat, Jun 15, 2013 at 2:33 AM, dE wrote: On 06/14/13 22:09, Chris Vine wrote: On Fri, 14 Jun 2013 21:41:05 +0530 dE wrote: On 06/14/13 17:02, Matthias Clasen wrote: On Fri, Jun 14, 2013 at 3:27 AM, dE wrote: I was monitoring the memory usage

Re: GTK free function doesn't appear to have any affect.

2013-06-14 Thread dE
On 06/14/13 22:09, Chris Vine wrote: On Fri, 14 Jun 2013 21:41:05 +0530 dE wrote: On 06/14/13 17:02, Matthias Clasen wrote: On Fri, Jun 14, 2013 at 3:27 AM, dE wrote: I was monitoring the memory usage before and after execution of g_object_unref and gtk_list_store_clear, and it didnt change

Re: GTK free function doesn't appear to have any affect.

2013-06-14 Thread dE
On 06/14/13 21:14, Tristan Van Berkom wrote: On Sat, Jun 15, 2013 at 12:23 AM, dE wrote: On 06/14/13 17:02, Matthias Clasen wrote: On Fri, Jun 14, 2013 at 3:27 AM, dE wrote: I was monitoring the memory usage before and after execution of g_object_unref and gtk_list_store_clear, and it didnt

Re: GTK free function doesn't appear to have any affect.

2013-06-14 Thread dE
On 06/14/13 17:02, Matthias Clasen wrote: On Fri, Jun 14, 2013 at 3:27 AM, dE wrote: I was monitoring the memory usage before and after execution of g_object_unref and gtk_list_store_clear, and it didnt change the memory usage by a bit. Is this normal (am I doing it right?)? What are you

Re: GTK free function doesn't appear to have any affect.

2013-06-14 Thread dE
On 06/14/13 17:02, Matthias Clasen wrote: On Fri, Jun 14, 2013 at 3:27 AM, dE wrote: I was monitoring the memory usage before and after execution of g_object_unref and gtk_list_store_clear, and it didnt change the memory usage by a bit. Is this normal (am I doing it right?)? What are you

Re: GTK free function doesn't appear to have any affect.

2013-06-14 Thread dE
On 06/14/13 13:24, Andrew Potter wrote: On Fri, Jun 14, 2013 at 12:27 AM, dE wrote: I was monitoring the memory usage before and after execution of g_object_unref and gtk_list_store_clear, and it didnt change the memory usage by a bit. Is this normal (am I doing it right?)? e.g

GTK free function doesn't appear to have any affect.

2013-06-14 Thread dE
I was monitoring the memory usage before and after execution of g_object_unref and gtk_list_store_clear, and it didnt change the memory usage by a bit. Is this normal (am I doing it right?)? e.g. -- gtk_list_store_clear (store); g_object_unref( G_OBJECT (store) ); g_object_unref ( G_OBJECT ( c

Re: Prevent sort of GtkListStore.

2013-06-13 Thread dE
On 06/13/13 18:49, Tristan Van Berkom wrote: On Wed, Jun 12, 2013 at 11:38 PM, dE wrote: With gtk_tree_view_column_set_sort_column_id (), it appears that GtkListStore also gets sorted. I don't want that to happen, since the data in it has to be compared. The sorting of GtkTreeView act

Re: Prevent sort of GtkListStore.

2013-06-12 Thread dE
me it's possible for ListStore too. The GTK API ref / tutorial probably mentions that where it explains sorting. I hope that helps, a bit of digging there will probably get you what you're looking for... Anatoly On ד', 2013-06-12 at 20:08 +0530, dE wrote: With gtk_tree_view_colum

Prevent sort of GtkListStore.

2013-06-12 Thread dE
With gtk_tree_view_column_set_sort_column_id (), it appears that GtkListStore also gets sorted. I don't want that to happen, since the data in it has to be compared. How can I do this? Thanks!! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gn

GtkBuilder causing memory leaks?

2013-06-11 Thread dE
The following code spawns a window -- if (connect_build_object != NULL) { g_object_unref (G_OBJECT ( connect_build_object )); object = NULL; } connect_build_object = gtk_builder_new(); gtk_builder_add_from_file ( connect_build_object, "main_window.glade", NULL ); gtk_builder

Re: Get column no. of edited cell.

2013-06-02 Thread dE
On 06/02/13 14:30, Arnel A. Borja wrote: On Sunday, 02 June, 2013 03:35 PM, dE wrote: On 06/02/13 12:49, Arnel A. Borja wrote: On Sunday, 02 June, 2013 02:15 PM, dE wrote: I'm trying this out, but isnt this also possible with gtk_tree_view_get_cursor clubbed

Re: Get column no. of edited cell.

2013-06-02 Thread dE
On 06/02/13 12:46, James Tappin wrote: Another possibility would be to use g_object_set_data to give the renderer a column number, and g_object_get_data in the handler. On 2 June 2013 07:15, dE <mailto:de.tec...@gmail.com>> wrote: On 06/02/13 00:27, Arnel A. Borja wrote:

Re: Get column no. of edited cell.

2013-06-02 Thread dE
On 06/02/13 12:49, Arnel A. Borja wrote: On Sunday, 02 June, 2013 02:15 PM, dE wrote: I'm trying this out, but isnt this also possible with gtk_tree_view_get_cursor clubbed with gtk_tree_view_column_get_sort_column_id. Cause I'm getting segfault with -- gtk_tree_view_

Re: Get column no. of edited cell.

2013-06-01 Thread dE
On 06/02/13 00:27, Arnel A. Borja wrote: On Sunday, 02 June, 2013 01:44 AM, dE wrote: I've set the "editable" property of GtkCellRenderer to true, and set the call back for the edited signal. This particular signal tells the node/row in which the edit has occurred, but not t

Get column no. of edited cell.

2013-06-01 Thread dE
I've set the "editable" property of GtkCellRenderer to true, and set the call back for the edited signal. This particular signal tells the node/row in which the edit has occurred, but not the column/filed. How can I get that? Thanks! ___ gtk-app-dev

Re: gtk_list_store_set issues.

2013-06-01 Thread dE
On 06/01/13 21:17, Arnel A. Borja wrote: On Saturday, 01 June, 2013 11:33 PM, dE wrote: On 06/01/13 20:38, Arnel A. Borja wrote: On Saturday, 01 June, 2013 10:49 PM, dE wrote: Hi, Hello everyone! This is my first time serious programming in C, and I'm using GTK for this. In a List

Re: gtk_list_store_set issues.

2013-06-01 Thread dE
On 06/01/13 20:38, Arnel A. Borja wrote: On Saturday, 01 June, 2013 10:49 PM, dE wrote: Hi, Hello everyone! This is my first time serious programming in C, and I'm using GTK for this. In a ListStore, I'm trying to add data to it via -- gtk_list_store_set ( list, ¤t, 0, &

gtk_list_store_set issues.

2013-06-01 Thread dE
Hello everyone! This is my first time serious programming in C, and I'm using GTK for this. In a ListStore, I'm trying to add data to it via -- gtk_list_store_set ( list, ¤t, 0, "test00", 1, "test01", -1 ); However, in both the columns I get test00 instead.

Re: gtkLabel resize itself and resize the whole window

2011-05-31 Thread Maxime de Roucy
:32:12 +0200, Vivien Malerba a écrit : > gtk_label_set_ellipsize()? > > Vivien > > 2011/5/31 Maxime de Roucy : > > Thanks for your answer. > > > > What I want exactly is : > > When the text in the GtkLabel is too long (it exceeds the widget > > size), I wa

Re: gtkLabel resize itself and resize the whole window

2011-05-31 Thread Maxime de Roucy
+0200, Emmanuel Thomas-Maurin a écrit : > On 05/31/2011 12:32 PM, Maxime de Roucy wrote: > > Hello > > > > I have a Window containing > > (gtk_container_add(window, box);) a GtkBox (which is a GtkVBox in > > reality) ; this GtkBox containing a GtkHBox which cont

gtkLabel resize itself and resize the whole window

2011-05-31 Thread Maxime de Roucy
Hello I have a Window containing (gtk_container_add(window, box);) a GtkBox (which is a GtkVBox in reality) ; this GtkBox containing a GtkHBox which contain a GtkLabel. With Gtk2 : "the text get cut off by the edge of the widget if it exceeds the widget size." But with Gtk3 the window extend its

Using tab completion with GtkEntryCompletion

2010-10-26 Thread Salvatore De Paolis
Hi all, I'm having fun these days with GCompletion(deprecated) and GtkEntryCompletion. Everything is going fine apart one important thing. We do autocomplete email addresses on request by the user, using the Tab key. I didn't find a way to implement it with GtkEntryCompletion. What I tried, and d

Problem with multiple selection in TreeView

2010-08-21 Thread Salvatore De Paolis
Hi, I'm using GTK+ 2.20.1 and I notice a wrong behavior on the multiple selection. I've connected a callback to the signal "cursor-changed" and within of if I get the selection in this way: sel = gtk_tree_view_get_selection(list_view); model = gtk_tree_view_get_model(list_view); rows = gtk_tree_s

Widget for drawing plot

2010-03-17 Thread Salvatore De Paolis
Hi, I was searching a good way to draw plots in Gtk+. Surfing a little bit a found Gtkdatabox and GtkPlot. Which is worth to use or there's anything else? regards Salvatore ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gno

Weird behaviour of gdk_device_get_history

2010-03-11 Thread Rafael Cunha de Almeida
I'm using gdk_device_get_history and I have been hitting some weird behavior. Sometimes get_history returns coords at <0, 0>, but the mouse (the device I'm using) never goes there. I notice that if I add 1 to the start time and subtract 1 from the end value, things seem to work. I'm a bit puzzled.

Re: Valgrind and GTK libraries

2010-01-04 Thread Erik de Castro Lopo
Dan Kegel wrote: > Erik de Castro Lopo wrote: > >  ==12528== 27,300 bytes in 175 blocks are still reachable in loss record > > 11,194 of 11,196 > >  ==12528==    at 0x4024C1C: malloc (vg_replace_malloc.c:195) > >  ==12528==    by 0x4B342E3: g_malloc (gmem.c:131) >

Re: Valgrind and GTK libraries

2010-01-04 Thread Erik de Castro Lopo
0.html on hand whenever they are doing any API design work. Erik -- ------ Erik de Castro Lopo http://www.mega-nerd.com/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Valgrind and GTK libraries

2010-01-01 Thread Erik de Castro Lopo
ense for GTK to have something similar? Cheers, Erik -- ------ Erik de Castro Lopo http://www.mega-nerd.com/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/

Re: gtk-directfb-crash

2009-11-11 Thread Moutusi De
://wiki.mozilla.org/Mobile/DFBPorting Thanks, Moutusi jeeper74 wrote: Moutusi, I have built/installed the same packages that you have on an arm system, and am having the same crash when calling "gtk_widget_show (window)" in helloworld.c. Have you been able to resolve the crash? Thanks, Roger

gtk-directfb crash

2009-11-08 Thread Moutusi De
Hi All, I have built gtk with target directfb. I have installed following pacakages: 1.gtk+-2.12.9 2.atk-1.13.2 3.cairo-1.6.4 4.glib-2.22.2 5.pango-1.20.2 6.pixman-0.12.0 7.DirectFB-1.2.0 I have built webkit-1.1.1 based on this gtk-directfb.Then I have bulit one browser called "Midori" that is

gtk-directfb-crash

2009-10-29 Thread Moutusi De
Hi All, I have built gtk with target directfb. I have installed following pacakages: 1.gtk+-2.18.0 2.atk-1.28.0 3.cairo-1.8.0 4.glib-2.22.2 5.pango-1.26.0 6.pixman-0.12.0 7.DirectFB-1.2.7 8.FreeType 2-9.16.3 Now I am trying to run examples programs thats comes with gtk.While running the program

Re: Gtk+ Integration with Webkit

2008-09-30 Thread Salvatore De Paolis
On Tue, 30 Sep 2008 23:23:41 +0300 "Mackram Raydan" <[EMAIL PROTECTED]> wrote: Hi, > Hey All, > > I am working on a small app that needs some integration with an HTML layout > engine. I have read across the net that there is work to integrate webkit > with Gtk+ but cant seem to find some good exp

Re: g_signal_emit and parameters

2008-08-30 Thread Salvatore De Paolis
On Sat, 30 Aug 2008 18:19:04 +0200 Mike Massonnet <[EMAIL PROTECTED]> wrote: Hi Mike! > Completely random guess, gtk_widget_show (item) maybe. Yeah, it helped, thanks! Sal ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gno

g_signal_emit and parameters

2008-08-30 Thread Salvatore De Paolis
Hi all, I have in a library such a signal emission g_signal_emit(view, MY_SIGNAL, NULL, menu); and from the program I'm connecting a callback to it in the way gboolean my_callback_menu (TYPE_VIEW *view, TYPE_MENU *menu, gpointer userdata) In this callback i basically do that GtkMenuShell *_sh

Re: Poppler vs. LGPL

2008-07-29 Thread Salvatore De Paolis
On Tue, 29 Jul 2008 22:52:49 -0400 Mike <[EMAIL PROTECTED]> wrote: > Ask the author[s] to release it also in LGPL? Actually poppler lib is a fork of xpdf which is strictly GPL-2. (strictly mean also the author is deaf) > John Boncek wrote: > > The Poppler library has been recommended in this lis

RE: SIGINT with gtk_main

2007-03-26 Thread Michiel De Hoon
fine on Windows, though it is of course hard to tell with async signals. Thanks again, --Michiel. Michiel de Hoon Center for Computational Biology and Bioinformatics Columbia University 1150 St Nicholas Avenue New York, NY 10032 ___ gtk-app-deve

Re: SIGINT with gtk_main

2007-03-21 Thread Michiel Jan Laurens de Hoon
the code (for example, it may be in the middle of a malloc), it's unsafe to do much more inside signal_handler than to set a variable as a flag (I'm not even sure if puts would be allowed inside signal_handler). And then the question is how to let gtk_main know that the flag variable ha

SIGINT with gtk_main

2007-03-21 Thread Michiel Jan Laurens de Hoon
d(100, _check_interrupt, NULL); gtk_main(); if (_interrupt_occurred) { _interrupt_occurred = 0; /* Do something with the interrupt */ } return 0; } Many thanks in advance, --Michiel. -- Michiel de Hoon Center for Computational Biology and Bioinformatics Col

Re: Changing cursor in GtkTextView widget.

2006-04-19 Thread Erik de Castro Lopo
Erik de Castro Lopo wrote: > Unfortunately, doing this after the top level call to > gtk_widget_show_all () is a PITA and doing before fails because > the call to gtk_text_view_get_window () returns NULL. While searching for something else I found a way to do this using g_signal_conn

Changing cursor in GtkTextView widget.

2006-04-19 Thread Erik de Castro Lopo
has been fully set up and shown? Cheers, Erik -- +---+ Erik de Castro Lopo +---+ "Crap can work. Given enough thrust pigs will fly, but it's not necessary a good idea."

Re: Help! how to install gtk?

2006-04-08 Thread Erik de Castro Lopo
stribution? Erik -- +-------+ Erik de Castro Lopo +---+ "Web (hosting), security and high-performance computing are the three areas where Linux has more strength." -- Bob Muglia, senior VP in charge of Windows Server development. http://new

Re: GtkTextView : how many lines currently visible?

2006-04-07 Thread Erik de Castro Lopo
Erik de Castro Lopo wrote: > but I still can't figure out how > to get the number of currently visible lines. I supposed I need > the size of the visible part of the GtkTextView widget, but getting > that is not obvious. Ok, figured it out for myself. For the arc

Re: GtkTextView : how many lines currently visible?

2006-04-06 Thread Erik de Castro Lopo
Eduardo M KALINOWSKI wrote: > Erik de Castro Lopo wrote: > > >Hi all, > > > >I'm using a GtkTextView widget and I'd like to know things like: > > > > - How many lines are currently visible > > - What line in the GtkTex

GtkTextView : how many lines currently visible?

2006-04-06 Thread Erik de Castro Lopo
TIA, Erik -- +---+ Erik de Castro Lopo +---+ Pastafarianism : http://www.venganza.org/ The intelligent alternative to 'Intelligent Design'. ___ gtk-app-devel-list mailing list gtk-app-devel

Re: How to detect window resize

2005-05-15 Thread Gabriel de Perthuis
Hello, Le dimanche 15 mai 2005 Ã 18:34 +0200, [EMAIL PROTECTED] a Ãcrit : > How do i actually detect a window resize. I looked through the API > reference, but were unable to find a signal to this. You can use the "size-allocate" signal in class GtkWidget: g_signal_connect (object, "size-allocate",

Re: possible to detect if window is on active desktop, or not?

2005-05-13 Thread Gabriel de Perthuis
Le jeudi 12 mai 2005 Ã 22:06 +0200, Olivier Sessink a Ãcrit : > Hi all, Hello, > is it possible to detect if a window is on the current desktop of the > user? (if the user is using virtual desktops?). > > I have an application that can have different documents open in diffeent > windows, and each

Re: ask for help: why gtk_grab_get_current returns NULL

2005-05-08 Thread Gabriel de Perthuis
Le dimanche 08 mai 2005 Ã 16:36 -0700, Neo Liu a Ãcrit : > ... > After gtk_grab_add is executed, gtk_grab_get_current returns NULL. Why? What kind of a widget is grabWidget? I think it should be able to receive events (GTK_WIDGET_IS_SENSITIVE, "sensitive" property). It is at least a doc bug, so i

Re: GtkTreeView data

2005-04-14 Thread Gabriel de Perthuis
Le jeudi 14 avril 2005 Ã 18:23 +0100, Kris Marsh a Ãcrit : > Hi, > > I'm trying to attach extra information to each row in a list, and then > retrieve it later on from a row on > a double click (row_activated) event. > Basically, i've tried: > > g_object_set_data(G_OBJECT(&iter_child), "my_info

Re: And the clipboards lives on...

2005-03-27 Thread Gabriel de Perthuis
Le mercredi 23 mars 2005 Ã 08:09 -0500, Freddie Unpenstein a Ãcrit : > I'm wondering if anyone could give me pointers on placing some text in the > clipboard, without it vanishing as soon as the program closes. > As I read the API, gtk_clipboard_store() is supposed to make the clipboard > conten

Re: How to get the first visible row in a tree view?

2005-03-13 Thread Gabriel de Perthuis
Le dimanche 13 mars 2005 Ã 20:59 +, David Rosal a Ãcrit : > Gabriel de Perthuis wrote: > > > Better: > > > > GdkRectangle r; > > int xw, yw; > > GtkTreePath* path = gtk_tree_path_new(); > > > > gtk_tree_view_get_visible_rect(tv, &r); >

Re: How to get the first visible row in a tree view?

2005-03-13 Thread Gabriel de Perthuis
Le dimanche 13 mars 2005 Ã 20:12 +0100, Gabriel de Perthuis a Ãcrit : > Le dimanche 13 mars 2005 Ã 19:14 +, David Rosal a Ãcrit : > > The question is: is there any way to know the contents of the first > > visible row in a tree view? > > gtk_tree_view_get_tree_path_

Re: How to get the first visible row in a tree view?

2005-03-13 Thread Gabriel de Perthuis
Le dimanche 13 mars 2005 Ã 19:14 +, David Rosal a Ãcrit : > Hi. > > I have a scrollable tree view with a list of filenames, and I want to > know which filename appears in the row at the top of the visible part of > the tree view. I'll use this information later to restore the scrolling > st

Re: Compile line options for gnome/libglade?

2005-01-25 Thread Arnaldo de Moraes Pereira
Hi Tony, Try adding libgnomeui-2.0 to the pkg-config arguments. Take care. On Sun, 23 Jan 2005 22:02:07 -0500, Tony Freeman <[EMAIL PROTECTED]> wrote: > I'm trying to compile the example program provided in Chapter 5 of "The > Official GNOME 2 Developer's Guide". Every program in this book tha