Hekp,writing my own widget,about gtk_widget_new

2006-03-13 Thread yeajchao
Hello all I am frastrated about writing my own gtk widget You know,in the gtk tutorial, there is a widget named gtkdial And its definition like this : -- gtkdial.h struct _GtkDial { GtkWidget widget; ... }

Re: Sorting GtkListStore date column

2006-03-13 Thread Axel Simon
On Sun, 2006-03-12 at 21:39 -0500, Guy Rouillier wrote: I'll use the approach of storing the time_t corresponding to each displayed date in a hidden column, and use that hidden column as the sort column for the date column. Out of curiosity, would it also be possible to do this in a

change function gtk_text_buffer_select_range to gtk_text_buffer_apply_tag, then doesn't work!

2006-03-13 Thread gepolv
when i run the ATTACHED SOURCE CODE,it works perfectly.But when i change the function search_button_clicked as follow: void search_button_clicked (GtkWidget *search_button, App *app) { const gchar *text; GtkTextBuffer *buffer; GtkTextIter iter; GtkTextIter mstart, mend; gboolean found;

Re: Handling Unix signals in a GTK+ application

2006-03-13 Thread Freddie Unpenstein
Going back to your original point, it is definitely not a busy wait. I just rolled together a quick test... A GTK main loop running two sources. First an event source created using g_timeout_add() that prints the current count each second, and halting the program (via gtk_main_quit() )

Possible to use a gtk_timeout without a gtk_main loop

2006-03-13 Thread Noonan, Michael (DCOI)
Hi Folks, I was wondering would it be possible to have a gtk_timer running outside of the gtk_main loop. I have a separate process that needs to interact with a Gtk application every n seconds and I was wondering if I could set a gtk_timer using gtk_timeout_add() outside the gtk_main()

Re: Handling Unix signals in a GTK+ application

2006-03-13 Thread Andreas Stricker
Thomas Okken schrieb: I would like to catch SIGINT in my GTK+ application, to do a graceful exit. I was looking for the GTK+ equivalent of XtNoticeSignal(), but I guess there isn't one; No, I'm missing them too... I read a few articles discussing the use of a pipe, with an input source to

Re: Possible to use a gtk_timeout without a gtk_main loop

2006-03-13 Thread Tristan Van Berkom
Noonan, Michael (DCOI) wrote: Hi Folks, I was wondering would it be possible to have a gtk_timer running outside of the gtk_main loop. I have a separate process that needs to interact with a Gtk application every n seconds and I was wondering if I could set a gtk_timer using gtk_timeout_add()

GTK+ 2.8.15 released

2006-03-13 Thread Matthias Clasen
GTK+ 2.8.15 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.8/ http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.8/ gtk+-2.8.15.tar.bz2 md5sum: df49f7498ec8275519ee92087f8d04db gtk+-2.8.15.tar.gzmd5sum: 31e6e537664aa3320936c7adcc192c75 This is a bugfix release in the 2.8.x

GtktreeView Model segmentation fault

2006-03-13 Thread Van H Tran
Hi all, I get a Segmentation fault in a gtktreeview i'm using. Basically, it's a Treeview with expandable folders (like a file browser) The problem is: The program crashes very randomly when i just try to click to expand/collapse the folders, particularly when the tree has depth = 3. After a

Re: GdkBitmap - turning pixels OFF

2006-03-13 Thread Kent Humphries
I worked this out. For my situation I did the following: create a GdkBitmap* containing the original mask. Create a second GdkBitmap* for the inverted mask. Then create a GdkGC for inversion and draw to the inverted mask using the inversion GdkGC Code snippet: GdkBitmap *original_bitmap,

info on Input methods needed

2006-03-13 Thread Joachim Noreiko
Hi everyone. This is your friendly neighborhood documentation writer. There's a long-standing bug on the GNOME Desktop User Guide for an explanation of GTK input methods. [1] Unfortunately, it's mostly chinese to me. (no pun intended ;) Could someone explain to me what GTK input methods are

Re: g_object_new(G_TYPE_OBJECT, NULL)

2006-03-13 Thread Tim Janik
On Fri, 10 Mar 2006, ANDREW PAPROCKI, BLOOMBERG/ 731 LEXIN wrote: Everyone, is there any reason why anyone would want to instantiate actual GObjects using g_object_new(G_TYPE_OBJECT, NULL)? As a follow-up to that question, was there a design decision in mind when not flagging GObject

Re: improvement of font selection

2006-03-13 Thread Behdad Esfahbod
Hello, I filed your request as a bug here: http://bugzilla.gnome.org/show_bug.cgi?id=334392 Can you add yourself to the bug CC and also comment there about what uses you see for this patch? Thanks behdad On Mon, 13 Mar 2006, Kenichi Handa wrote: Hi, I'd like to suggest the attached

Hekp,writing my own widget,about gtk_widget_new

2006-03-13 Thread yeajchao
Hello all I am frastrated about writing my own gtk widget You know,in the gtk tutorial, there is a widget named gtkdial And its definition like this : -- gtkdial.h struct _GtkDial { GtkWidget widget; ... }

Re: TextView problem on Win32

2006-03-13 Thread Jernej Simončič
On Mon, 13 Mar 2006 10:27:30 +0300, Andrew E. Makeev wrote: 3rd. Is there Gtk+-2.8 Win32 binary packages built for MinGW I could download and check the issue? ftp://ftp.gtk.org/pub/gtk/v2.8/win32/ -- Jernej Simončič http://deepthought.ena.si/ Contact address: jernej simoncic at isg si

Re: TextView problem on Win32

2006-03-13 Thread Tor Lillqvist
Andrew E. Makeev writes: Well, the problem is that we have only Gtk+-2.4 package built on Win32 platform. Why not download and install a newer one then? Could you, please, point on other changes (files) I should use to patch Gtk+-2.4 to fix that problem. I'm sorry, but I don't know

Re: TextView problem on Win32

2006-03-13 Thread Andrew E. Makeev
Tor Lillqvist wrote: Andrew E. Makeev writes: Well, the problem is that we have only Gtk+-2.4 package built on Win32 platform. Why not download and install a newer one then? Well, we have business application that runs both on Linux and Win32 platforms. We are using gtkmm-2.4. So, it

Re: Need your help when I writing my own gtk widgets

2006-03-13 Thread Tristan Van Berkom
yeajchao wrote: Hello all First of all,i apologize for my terriblly poor English! I am going to write a widget for my application In my application,there need a virtual instrument,some more like a watch,but, in the bottom,there must have a digital display of its value In

Windows errata or my fault?

2006-03-13 Thread Rick Jones
I've been tyring various little programs to get a feel for glib on windows. One of them is attached. The idea is to connect to the echo port on a system, send it hello world from time to time, and get those bytes back. I have one of those it works on linux but not here situations. Under

stdin/stdout and g_spawn_async_with_pipes()

2006-03-13 Thread Rick Jones
The netserver of netperf4 can run as a child of inetd, which makes stdin/stdout the socket that was accepted by inetd. When running as a standalone daemon, netserver simply forks() but does not exec() and control_sock is known in the child and that is used. I'd like to start using

GTK+ 2.8.15 released

2006-03-13 Thread Matthias Clasen
GTK+ 2.8.15 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.8/ http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.8/ gtk+-2.8.15.tar.bz2 md5sum: df49f7498ec8275519ee92087f8d04db gtk+-2.8.15.tar.gzmd5sum: 31e6e537664aa3320936c7adcc192c75 This is a bugfix release in the 2.8.x

GtkTextView, move-cursor signal

2006-03-13 Thread Hans Oesterholt-Dijkema
Dear All, I'm deriving a simple styled editor from a gtk-text-view; and want to know if the cursor position has changed, so that I can adjust some style combo boxes; i.e. change the style in the combobox to the style currently underneath the cursor position. I'm thinking of connecting to the

Link 2 LiveCD Druid

2006-03-13 Thread Dirk vdw
Hi, can you pls add a link to my program :) http://forgeftp.novell.com/livecd-druid/homepage/index.html Tx! ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

glade is preferred?

2006-03-13 Thread Beast
This might little oot for this list. Is creating UI with glade is now the preferred way to make GUI application using perl-gtk (or any other gtk binding language)? what is the pros and cons? Note: I never been using glade previously. -- --beast

Re: Pango Layout Mystery

2006-03-13 Thread muppet
James Muir wrote: Can anyone explain to me why $layout-get_pixel_size() returns different values than those I'd get when I get the Gnome2:Canvas::Item 'text-height' and 'text-width' properties? I've looked at several other Layout properties (spacing, indent, justify) and they all return 0. In

Re: Pango Layout Mystery

2006-03-13 Thread James Muir
muppet wrote: Granted, this is based on looking for about two minutes at stuff i had lying around. Thanks for looking. This gives me something to chew on. -James ___ gtk-perl-list mailing list gtk-perl-list@gnome.org