Re: ComboBox: selecting items with children, Gtk2 vs Gtk3

2018-09-02 Thread Eduardo M KALINOWSKI
On 07-07-2018 11:00, Eduardo M KALINOWSKI wrote: > On 05-07-2018 11:02, Eduardo M KALINOWSKI wrote: >> Consider the sample attached: it builds a tree model with an item that >> has child items, and uses that model in a ComboBox. >> >> When compiled with Gtk2,

Re: ComboBox: selecting items with children, Gtk2 vs Gtk3

2018-07-14 Thread Eduardo M KALINOWSKI
On 07-07-2018 11:00, Eduardo M KALINOWSKI wrote: > On 05-07-2018 11:02, Eduardo M KALINOWSKI wrote: >> Consider the sample attached: it builds a tree model with an item that >> has child items, and uses that model in a ComboBox. >> >> When compiled with Gtk2,

Re: ComboBox: selecting items with children, Gtk2 vs Gtk3

2018-07-07 Thread Eduardo M KALINOWSKI
On 05-07-2018 11:02, Eduardo M KALINOWSKI wrote: > Consider the sample attached: it builds a tree model with an item that > has child items, and uses that model in a ComboBox. > > When compiled with Gtk2, when the item with children is selected and > its children displayed,

ComboBox: selecting items with children, Gtk2 vs Gtk3

2018-07-07 Thread Eduardo M KALINOWSKI
cted using the keyboard, but apparently with the mouse. Is there a way to get the Gtk2 behaviour back with Gtk3? Thanks, -- Eduardo M KALINOWSKI edua...@kalinowski.com.br ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.o

Re: how to set language for non-unicode text

2009-12-29 Thread Eduardo M KALINOWSKI
://library.gnome.org/devel/glib/stable/glib-Character-Set-Conversion.html#g-convert -- It's reassuring to know that if you behave strangely enough, society will take full responsibility for you. Eduardo M KALINOWSKI edua...@kalinowski.com.br ___ gtk-app-devel

Re: Control what happens when GtkTextView is resized: keep the bottom part visible

2009-11-14 Thread Eduardo M KALINOWSKI
unseeable. You *can* see dragons. You just have to look in the right direction. -- John Hasler Eduardo M KALINOWSKI edua...@kalinowski.com.br ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman

Re: Control what happens when GtkTextView is resized: keep the bottom part visible

2009-11-13 Thread Eduardo M KALINOWSKI
of the GtkAdjustment before it starts to be resized and then, in a callback like you posted, set the new value to display the desired part. But how can one obtain the value before the resizing starts? -- Culus Saens demonstrates no less than 3 tcp/ip bugs in 2.2.3 Eduardo M KALINOWSKI edua

Re: Control what happens when GtkTextView is resized: keep the bottom part visible

2009-11-11 Thread Eduardo M KALINOWSKI
Eduardo M KALINOWSKI wrote: I have a question concerning how to set which part of a GtkTextBuffer is displayed when a GtkTextView is resized. To explain the situation, consider this sample code: 8 /* gcc -o tvtest tvtest.c `pkg-config --libs --cflags gtk+-2.0` */ #include gtk/gtk.h

Control what happens when GtkTextView is resized: keep the bottom part visible

2009-11-09 Thread Eduardo M KALINOWSKI
for that? -- Money is truthful. If a man speaks of his honor, make him pay cash. -- Lazarus Long Eduardo M KALINOWSKI edua...@kalinowski.com.br ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org

Re: Finding a widget in a Glade interface

2008-07-31 Thread Eduardo M KALINOWSKI
-get-widget-tree -- No one can have a higher opinion of him than I have, and I think he's a dirty little beast. -- W. S. Gilbert Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel

Re: gtk_widget_set_sensitive and mouse pointer

2008-07-14 Thread Eduardo M KALINOWSKI
Rui Tiago Cação Matos escreveu: On 14/07/2008, Eric Masson @ Savant Protection [EMAIL PROTECTED] wrote: The problem was this: You have several widgets inside of a container and you call gtk_widget_set_sensitive with false to gray out the container + all children. If you leave your mouse

Re: How do I get the enter key to press OK when in a GTk::Entry widget?

2008-07-14 Thread Eduardo M KALINOWSKI
, people kill people!! Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: glib and Xlib

2008-06-06 Thread Eduardo M KALINOWSKI
jaafar EL GONNOUNI escreveu: Hello; What is *glib *adding that the GTK + compared to *Xlib *? All what is possible with glib with Xlib is feasible, then why create a new library. glib is a library to easy programming with the C language. It contains data structures, utility functions,

Re: Widgets in widget

2008-04-28 Thread Eduardo M KALINOWSKI
Carlyle Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Callback Question

2008-04-13 Thread Eduardo M KALINOWSKI
Matí­as Alejandro Torres wrote: Hi, Can I call GTK Functions that modifies the GUI inside a callback? Sure. What have you tried to do that did not work? -- Many a wife thinks her husband is the world's greatest lover. But she can never catch him at it. Eduardo M KALINOWSKI [EMAIL

Re: How create new GtkBin widget

2008-03-17 Thread Eduardo M KALINOWSKI
M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: app/window deactivation handling

2008-03-12 Thread Eduardo M KALINOWSKI
being deactivated. Any pointers on where to hook into this? Look at the focus_in_event and focus_out_event signals. -- You'll always be, What you always were, Which has nothing to do with, All to do, with her. -- Company Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to

Re: how to tell if to GtkTreeIter's point to the same row, or not?

2008-02-19 Thread Eduardo M KALINOWSKI
with gtk_tree_path_compare(). (Or something similar.) -- Inspired by a true story. Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: File Chooser Dialog: display only files with chosen extensions

2008-01-12 Thread Eduardo M KALINOWSKI
: http://library.gnome.org/devel/gtk/unstable/GtkFileChooser.html#gtk-file-chooser-add-filter http://library.gnome.org/devel/gtk/unstable/gtk-gtkfilefilter.html#GtkFileFilter -- The only time a dog gets complimented is when he doesn't do anything. -- C. Schulz Eduardo M KALINOWSKI

Re: How to program a simple dialog?

2008-01-10 Thread Eduardo M KALINOWSKI
to gtk_main() to do anything useful (in this case, displaying the window). -- I must have slipped a disk -- my pack hurts! Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: Destroying a GtkNotebook

2008-01-10 Thread Eduardo M KALINOWSKI
. Have you any solution that can help me ? The proper way to destroy widgets is with gtk_widget_destroy(). That should work. -- I must have slipped a disk -- my pack hurts! Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app

Re: Gtk application in hindi

2007-12-26 Thread Eduardo M KALINOWSKI
://oriya.sarovar.org/docs/gettext/ http://www.gnu.org/software/gettext/manual/gettext.html -- Is knowledge knowable? If not, how do we know that? Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list

Re: timeout_add or timeout_add_full

2007-12-14 Thread Eduardo M KALINOWSKI
On Dec 14, 2007 4:59 PM, Admin Software [EMAIL PROTECTED] wrote: Hi, i have read about timeout_add and timeout_add_full from glib. But if i try to call these function from perl i've got error --- unknown ---. Are there available from perl or are there equivalence functions? It's

Re: How to make GtkTreeView and GtkTextView scrollable?

2007-11-16 Thread Eduardo M KALINOWSKI
On Nov 16, 2007 1:58 PM, AlannY [EMAIL PROTECTED] wrote: Hi. I want to make my GtkTreeView and GtkTextView scrollable automaticaly. How to do it? It's lame question. I know. Just add them inside a GtkScrolledWindow. ___ gtk-app-devel-list mailing

Re: Building and packaging for Windows

2007-11-06 Thread Eduardo M KALINOWSKI
Also it's a bit painful to download each zipfile, extract it, and find the dll I want in there. But I don't know what an easier way would be - that's why I asked. Maybe I can write some kind of script to download, extract and copy files based on a list. If that sounds like a good idea to you,

Re: Date and time

2007-10-24 Thread Eduardo M KALINOWSKI
manual, such as http://www.gnu.org/software/libc/manual/html_node/index.html I'll leave the looking for the exact function as an exercise to the student. -- Marriage is a great institution -- but I'm not ready for an institution yet. -- Mae West Eduardo M KALINOWSKI [EMAIL PROTECTED

Re: Regrading gtk thread

2007-09-08 Thread Eduardo M KALINOWSKI
is the best way to stop the thread ?? If, as you say, you have only one thread, then if you stop the only thread, you're stopping the program. But the fact is that in this case there's nothing to stop. -- Any given program will expand to fill available memory. Eduardo M KALINOWSKI [EMAIL

Re: libglade problems under win32

2007-08-31 Thread Eduardo M KALINOWSKI
exit_cb(GtkWidget *widget, GdkEvent *event, gpointer data); Oh, yes, Windows sucks. -- It's God. No, not Richard Stallman, or Linus Torvalds, but God. (By Matt Welsh) Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list

gtk_accelerator_name gtk_accelerator_parse not symmetrical

2007-08-09 Thread Eduardo M KALINOWSKI
and manually adjusting the codes?) -- Pascal Users: To show respect for the 313th anniversary (tomorrow) of the death of Blaise Pascal, your programs will be run at half speed. Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb

Re: Multiple threads and gtk_main()

2007-07-10 Thread Eduardo M KALINOWSKI
Gabriele Greco escreveu: I've a few threads (more than one) doing some work (not accessing GTK functions), I'd like to have a general way to make them notify their work to the main loop. I used the g_idle_add() in the previous context where I had only a thread with this behaviour, but

Re: Disable ALL keybindings for a specific widgit?

2007-06-15 Thread Eduardo M KALINOWSKI
On 6/14/07, Justin Stallard [EMAIL PROTECTED] wrote: Hi, I've looked through the tutorial, faq, API doc, and even google and I can't seem to find out if there's some way to unbind all the keybindings associated with a particular widgit. Is there? What I want to have is this: A GtkEntry

Re: Windows Vista and GTK+ compatibility

2007-01-31 Thread Eduardo M KALINOWSKI
.. knghtbrd from carmack.brain import OpenGL Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Using gettext with a GOptionEntry

2007-01-25 Thread Eduardo M KALINOWSKI
and a lie is that a cat has only nine lives. -- Mark Twain, Pudd'nhead Wilson's Calendar Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo

Re: Tooltip per GtkClist row

2007-01-04 Thread Eduardo M KALINOWSKI
; All you do is sit staring at a terminal until the drops of blood form on your forehead. Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk

Re: Bring to front minimized window

2006-10-07 Thread Eduardo M KALINOWSKI
Srivastava Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: gtk_notebook_set_current_page and the switch-page signal

2006-09-06 Thread Eduardo M KALINOWSKI
changes by GTK. You can, however, block the signal prior to calling the gtk_notebook_set_current_page function, and unblock it afterwards. -- You don't have to explain something you never said. -- Calvin Coolidge Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb

Re: How to update a treeview with values from a closed dialog?

2006-09-04 Thread Eduardo M KALINOWSKI
. Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

gtk_entry_select_on_focus for a single entry?

2006-07-28 Thread Eduardo M KALINOWSKI
? -- Rube Walker: Hey, Yogi, what time is it? Yogi Berra: You mean now? Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel

Re: Simple Yes/No dialog

2006-06-17 Thread Eduardo M KALINOWSKI
GtkMessageDialog. -- You never hesitate to tackle the most difficult problems. Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app

Re: Applied tag(s) to text

2006-06-09 Thread Eduardo M KALINOWSKI
that. And to get an iter at the clicked position, use gtk_text_view_get_iter_at_position() or a similar function. -- This was the most unkindest cut of all. -- William Shakespeare, Julius Caesar Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb

Re: Changing (default) keybindings

2006-05-16 Thread Eduardo M KALINOWSKI
want to confuse your users, a solution is not to use stock itens. Or use the stock pixmap, the same text, but constructing the menu manually. -- ... all the modern inconveniences ... -- Mark Twain Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb

Re: Problem displaying Japanese Text in GtkEntry/GtkTextView

2006-04-24 Thread Eduardo M KALINOWSKI
of Strategy, Ecole Superieure de Guerre Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: problem: text view appends

2006-04-14 Thread Eduardo M KALINOWSKI
dreams. Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GtkTextView : how many lines currently visible?

2006-04-06 Thread Eduardo M KALINOWSKI
() or gtk_text_view_get_iter_at_position(), with appropriate coordinates (HINT: gtk_text_view_window_to_buffer_coordinates()) followed by gtk_text_iter_get_line() might do the trick. -- I'm not going to say, I told you so. Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb

Re: text tag table

2006-04-04 Thread Eduardo M KALINOWSKI
of the tags. -- pain, n.: One thing, at least it proves that you're alive! Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app

Re: About gtk text view

2006-03-28 Thread Eduardo M KALINOWSKI
your hedge. -- Benjamin Franklin Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Question about GdkColor

2006-03-17 Thread Eduardo M KALINOWSKI
calculations will provide the values for green and blue. BTW, using hexadecimal base this conversion gets simpler. Try for yourself. -- Never trust anybody whose arm is bigger than your leg. Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk

Re: GTK and KDE compatibility

2006-03-01 Thread Eduardo M KALINOWSKI
, and them implement it in your application. -- You are a wish to be here wishing yourself. -- Philip Whalen Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: GTK+ + VT100 support

2006-02-07 Thread Eduardo M KALINOWSKI
a terminal emulator, the same one in gnome-terminal, supporting VT100. -- Pascal Users: To show respect for the 313th anniversary (tomorrow) of the death of Blaise Pascal, your programs will be run at half speed. Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb

Signal when the cursor of a GtkTextView is changed

2006-01-18 Thread Eduardo M KALINOWSKI
to catch cursor movements in a signal? -- Q: What does it say on the bottom of Coke cans in North Dakota? A: Open other end. Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-perl-list mailing list gtk-perl-list

drawable is not a pixmap or window after upgrade to 2.8.9

2006-01-02 Thread Eduardo M KALINOWSKI
never appears. I'm using GTK+ version 2.8.9, glib version 2.8.4 and cairo 1.0.2. -- Why are you so hard to ignore? Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: Events and derived objects

2005-12-15 Thread Eduardo M KALINOWSKI
. By the way, the same happens with a GtkEntry, it is not a problem with the TextView. Perhaps I need to declare something for MyWidget class to properly handle such events? -- Push where it gives and scratch where it itches. Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb

Events and derived objects

2005-12-14 Thread Eduardo M Kalinowski
have'nt discovered how to propagate keys unhandled by the TextView itself or by my special handler to the user. -- Eduardo M Kalinowski [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: GTK+ for Windows: issues with apps locating the dll's

2005-12-14 Thread Eduardo M KALINOWSKI
, Jim. Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Native Windows Gtk+ from Cygwin

2005-12-09 Thread Eduardo M KALINOWSKI
, or a directory in the PATH. -- In any formula, constants (especially those obtained from handbooks) are to be treated as variables. Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: gtk win32 and env variables

2005-11-05 Thread Eduardo M KALINOWSKI
by other factors). Or, if for some reason you can't/don't want to use glib, use the Windows function GetModuleFileName(). -- Buckle up! Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list

Re: Strange bug while subclassing Gtk2::Box

2005-10-30 Thread Eduardo M KALINOWSKI
Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: Rows in a treeview

2005-10-24 Thread Eduardo M KALINOWSKI
and smoked my first cigarette on the same day. I haven't had time for tobacco since. -- Arturo Toscanini Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: Tooltips inside a TreeView.

2005-09-25 Thread Eduardo M KALINOWSKI
in a TreeView (don't remember the name of the function right now). -- I used to be Snow White, but I drifted. -- Mae West Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Re: How to check if a font has a given character?

2005-09-16 Thread Eduardo M KALINOWSKI
Christian Neumair wrote: Am Donnerstag, den 15.09.2005, 17:06 -0300 schrieb Eduardo M KALINOWSKI: Right. Looking at it, the function pango_coverage_get() seems promising. However, I'm unsure about the index_ argument. Would that be index of that I want to check, according

How to check if a font has a given character?

2005-09-15 Thread Eduardo M KALINOWSKI
a PangoFcFont *. -- Character is what you are in the dark! -- Lord John Whorfin Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo

Re: How to check if a font has a given character?

2005-09-15 Thread Eduardo M KALINOWSKI
Christian Neumair wrote: Am Donnerstag, den 15.09.2005, 16:26 -0300 schrieb Eduardo M KALINOWSKI: I want to check if the font I'm using (in a GtkTextView, if that matters) contains some characters (specifically, the line-drawing characters). How can I do that with Pango? The function

Re: what is the function name that you can send a function to be running every n milliseconds

2005-07-15 Thread Eduardo M KALINOWSKI
one user-supplied argument. -- All this wheeling and dealing around, why, it isn't for money, it's for fun. Money's just the way we keep score. -- Henry Tyroon Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel

Re: closing a GtkFileChooserDialog

2005-07-09 Thread Eduardo M KALINOWSKI
the screen, but I'm not completely sure. But try it. -- Don't look now, but the man in the moon is laughing at you. Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: Gtkmm: object creation delays

2005-07-06 Thread Eduardo M KALINOWSKI
the Gtkmm equivalent of while (gtk_events_pending()) gtk_main_iteration(); when you want the display to be updated. -- Whom the gods wish to destroy they first call promising. Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app

Re: Determining the width of a GtkTextView in characters

2005-06-12 Thread Eduardo M KALINOWSKI
Eduardo M KALINOWSKI wrote: Hi, I have a GtkTextView whose contents is all in one font, a monospaced font by the way. I want to know the width of the GtkTextView in characters, that is, how many characters fit in a line. I've tried a code like this: OK, I've found a code that does

Determining the number of visible lines in a GtkTextView

2005-06-12 Thread Eduardo M KALINOWSKI
not accounted for in that code) is something like 16 or 17 pixels. -- A verbal contract isn't worth the paper it's written on. Include me out. -Samuel Goldwyn Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk

Determining the width of a GtkTextView in characters

2005-06-11 Thread Eduardo M KALINOWSKI
of columns is smaller than the real value. For example, with a width of 80 characters, the value returned is 71. How can I do that? -- Marriage, n.: The evil aye. Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list

Re: State changing of Toggle Buttons

2005-05-31 Thread Eduardo M KALINOWSKI
We exist as a country because we're cheap. Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Something like console widget

2005-04-19 Thread Eduardo M KALINOWSKI
M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Glib::Object::Subclass, embedding and multiple interpreters

2005-03-31 Thread Eduardo M KALINOWSKI
muppet wrote: On Mar 31, 2005, at 6:58 AM, Eduardo M KALINOWSKI wrote: I'm doing something like this: package KCWin; eval { Glib::Type-list_ancestors(__PACKAGE__); # if we're alive here, the package is already registered. } or Glib::Type-register_object('Gtk2::Window