Re: Frustration with GtkActions

2008-01-08 Thread Gabriel Schulhof
On Tue, 2008-01-08 at 16:02 -0500, Randy Poe wrote: > Any suggestions? Register new stock items for all the menu items you want covered by actions. I use the function below for icons, and gtk_stock_add() for labels. void add_stock_icon (const gchar *filename, const gchar *stock_id) { GtkIconS

Re: Accelerator keys and popup menus?

2007-08-19 Thread Gabriel Schulhof
Hi! On Sun, 2007-08-19 at 23:48 +0300, Stefan Kost wrote: > I read about the differences. I really want "accelerators". I was able to hack it: Create a plain old regular menubar-type menu with accelerators. Then ref the submenu you want to make into a popup menu and detach it from its parent menu

Re: Xlib: unexpected async reply (sequence #####)!

2007-08-08 Thread Gabriel Schulhof
On Sun, 2007-08-05 at 20:11 +0800, Gregory Hosler wrote: > Your example clears up alot of stuff for me. One of my questions (that your > example pretty much clarifies for me), was "what do I g_idle_add()" ? > If I understand correctly, you basically add callback functions, and in > particular, ones

Re: Xlib: unexpected async reply (sequence #####)!

2007-08-05 Thread Gabriel Schulhof
On Sun, 2007-08-05 at 11:29 +0800, Gregory Hosler wrote: > I'm looking for code examples specifically on how to use/implement > g_idle_add(). > Know any projects that uses g_idle_add() and related infrastructure? static gboolean make_insensitive_idle_cb(gpointer data) { GtkWidget *widget = GTK

Re: How to create a simple multilingual GUI

2007-05-13 Thread Gabriel Schulhof
Hi! On Sun, 2007-05-13 at 02:19 +0200, David Nečas (Yeti) wrote: > Run-time switching of languages is not > possible http://bugzilla.gnome.org/show_bug.cgi?id=313736 Oh, it's possible, just very difficult. You have to keep all your user-string-displaying widgets in a list, and set the label/text

Using a GtkIMContext

2007-04-12 Thread Gabriel Schulhof
Hi! I have written a trivial app (http://idefix.go-nix.ca/nix/im.c (54 lines)) that associates a newly created GtkIMMulticontext with a GtkTextView widget's GdkWindow during the widget's "realize" event. It also connects to the GtkIMContext's "commit" signal. Unfortunately, the handler for the "c

Re: GtkWidget CList problem.

2007-03-31 Thread Gabriel Schulhof
On Sat, 2007-03-31 at 05:16 -0500, Anthony Lamantia wrote: > I am having a small problem with the CList widget GtkCList is deprecated. Use a GtkTreeView. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/list

Re: GtkTreeView colspan, rowspan

2007-03-29 Thread Gabriel Schulhof
Hi! On Thu, March 29, 2007 14:40, Stefan Kost wrote: > Unfortunately it is not, although I really miss it. What about implementing your own cell renderer? You could make a fancier version of GtkCellRendererText that can handle multiple text strings arranged in a grid. Of course, if what you reall

Re: Unsolved mystery - How to control GtkTreeView row height

2007-03-25 Thread Gabriel Schulhof
Hey! On Sat, 2007-03-24 at 13:29 +1100, Anthony E. Rich wrote: > Remember: all gtk code has been tried, and all doc and forums have been > searched unsuccessfully for a solution, for the past 2 years. It is time > to put > our minds to fixing this universal problem of fixed-height grids, so that

Re: Q: GtkHTMLx Situation

2007-03-25 Thread Gabriel Schulhof
Hey! On Fri, 2007-03-23 at 16:41 +0100, Martin Fischer wrote: > Currently I'm thinking about starting with GtkHTML2 and moving to > GtkHTML3 once GtkPrint is supported. I already coded some basic > functionality so I'm pretty confident that I will be able to implement > all I need. I maintain

Re: Move decorationless window with mouse

2007-03-25 Thread Gabriel Schulhof
Hey! On Thu, 2007-03-22 at 18:14 -0700, 3saul wrote: > I had this in mind also. But how would I detect the movements of the mouse > and where to place the window? You need to connect to the "button-press-event" signal and the "motion-notify-event" signal. You also need to enable the reception of t

Re: GTK+ and LATEX

2007-03-18 Thread Gabriel Schulhof
OK, I'm embarassed. All my characters got escaped. Let's see if it happens again (posting with evolution, this time): ε η π ω ϑ ξ ∇ ∑ ∫ ∮ ∪ ∩ ∞ ∴ ∵ ≃ ≈ ≠ ≡ ≝ ≟ ⊂ ⊃ ⊆ ⊇ ⊕ ⋮ ⋯ ⋰ ⋱ ⇒ ⇔ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http:/

Re: GTK+ and LATEX

2007-03-18 Thread Gabriel Schulhof
Hi! > I'm wondering if I'm able to display latex symbols using GtkTextView. I > need > to display some math symbols. Maybe I should get into Pango? You can display a great many symbols with a simple string, if you have a proper UTF-8 font: ε η π ω ϑ ξ ∇ ∑ ∫ ∮ ∪ ∩ ∞ ∴ ∵ ≃ ≈ ≠ ≡ ≝ ≟ ⊂ ⊃ ⊆ ⊇ ⊕ ⋮ ⋯ ⋰

http://pastebin.ca/400604 (attachment seems to have gotten stripped :o( )

2007-03-18 Thread Gabriel Schulhof
Sorry about this. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

GtkScrolledWindow in a dialog

2007-03-18 Thread Gabriel Schulhof
Hi! I'm sure this is a perennial problem, but I just can't figure out how to google for it: Consider a GtkDialog containing, among other things, a GtkScrolledWindow with horizontal and vertical policy set to automatic. Suppose the GtkScrolledWindow contains a GtkTable with a grid of GtkLabel obje