Transparently instantiating derived widgets with Gtk::Builder

2018-04-13 Thread Roger Leigh
es); MyWidget *tmp build.get_widget_derived(name, tmp); *this = std::move(*tmp); } but I'm not sure about the safety of it. Thanks all, Roger ¹https://gitlab.com/codelibre/ogcalc/tree/master/gtk/C++ ²https://developer.gnome.org/gtkmm-tutorial/stable/sec-builder-using-derived-widgets.html.en ³https://

CellRenderer size

2007-08-31 Thread Roger Ferrer Ibáñez
Hi, I'm writing a CellRenderer and it is unclear to me how the CellRenderer tells the related TreeView the size it will require when drawing. I've seen that there is CellRenderer::set_fixed_size but I don't know if this is the proper way to achieve this. Thank you, -- Roge

Re: Question about FileChooserDialog

2006-11-17 Thread roger
On Fri, 17 Nov 2006 13:21:08 +0100 Murray Cumming wrote: >> What's the recommended way to present a dialog to >> the user which allows the user to select several >> file names? FileChooserDialog seems to allow >> selection of only one filename. > >Many interesting methods are in the FileChooser b

Question about FileChooserDialog

2006-11-17 Thread Roger
What's the recommended way to present a dialog to the user which allows the user to select several file names? FileChooserDialog seems to allow selection of only one filename. There's a class called FileSelection which seems to allow selection of multiple filenames but in the documentation for this

Re: sigc++ signals and GSignal

2005-12-21 Thread Roger Leigh
:SignalProxyNormal::connect (const > sigc::slot_base& slot, bool after) method. I think on reflection I'll be better with just virtual functions. I wanted to mimic GSignal, but since I'm not wrapping a real GSignal, I can't make use of SignalProxyNormal. I'd a

sigc++ signals and GSignal

2005-12-15 Thread Roger Leigh
rridden, I might not want the default to run at all. Is this possible? Many thanks, Roger - -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ Debian GNU/Linuxhttp://www.debian.org/ GPG Public Key: 0x25BFB848. Pleas

Re: menuitems + glade + accelerator keys

2005-10-03 Thread Roger Leigh
Tobias Eberle <[EMAIL PROTECTED]> writes: > Hello Roger, > >> http://bugzilla.gnome.org/show_bug.cgi?id=129846 >> >> Yes, this is darned annoying. Unfortunately, the libglade maintainer >> hasn't commented upon it, and I wasn't familiar enough w

Re: menuitems + glade + accelerator keys

2005-10-03 Thread Roger Leigh
he libglade internals to fix it myself. Regards, Roger - -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ Debian GNU/Linuxhttp://www.debian.org/ GPG Public Key: 0x25BFB848. Please sign and encrypt your mail. -B

Re: which gtkmm

2005-07-19 Thread Roger Leigh
.3, and this works with GTK+ 2.6. You'll need to upgrade GLib and GTK+ before building it. If you use a decent GNU/Linux distribution, you should already have GTK+ 2.6 and Gtkmm 2.6 available (or at least the 2.4 versions). Regards, Roger -- Roger Leigh Printing on

Re: Pango warning: "Invalid UTF-8 string"

2005-07-17 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthias Kaeppler <[EMAIL PROTECTED]> writes: > Roger Leigh wrote: >>> It's a filename, an std::string returned by >>> Gnome::Vfs::FileInfo::get_name(). >> You want the glibmm equivalent of g_filename_to_utf

Re: Pango warning: "Invalid UTF-8 string"

2005-07-17 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthias Kaeppler <[EMAIL PROTECTED]> writes: > Roger Leigh wrote: >> Are you *sure* the string is UTF-8 and that the umlaut is not an >> 8-bit Latin (ISO-8859-n) character? > > It's an ordinary std::string. I also

Re: Pango warning: "Invalid UTF-8 string"

2005-07-17 Thread Roger Leigh
t Latin (ISO-8859-n) character? Where is the umlaut coming from? The command-line, a file, the program source? Are you totally sure of its encoding? Regards, Roger - -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ Debi

Re: Slightly Off Topic - Question about DB access.....

2005-07-06 Thread Roger Leigh
(libgda2-dev or gdamm). If you want a C++ library, try libpqxx, but it will tie you to PostgreSQL. Regards, Roger - -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ Debian GNU/Linuxhttp://www.debian.org/ GPG Public K

Re: gtkmm and gcc 4.0

2005-06-26 Thread Roger Leigh
currently using GCC 3.3 with libstdc++5. We will, in a few weeks, switch to GCC 4.0 and libstdc++6. At this point all the C++ libraries will need to be rebuilt, and these problems will go away. It's not possible to use multiple versions of libstdc++ in one program, so linking a

Re: on-show equivalent

2005-04-29 Thread Roger Leigh
s. You probably want "realize". Regards, Roger - -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ Debian GNU/Linuxhttp://www.debian.org/ GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.

Re: How to install a new "property"?

2005-03-28 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 "Andrew E. Makeev" <[EMAIL PROTECTED]> writes: > Roger Leigh wrote: > >>dzho002 <[EMAIL PROTECTED]> writes: >> >>>how I can install/register the new property (do I need do that at >>>all?)

Re: How to install a new "property"?

2005-03-28 Thread Roger Leigh
but these aren't virtual... Regards, Roger -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ Debian GNU/Linuxhttp://www.debian.org/ GPG Public Key: 0x25BFB848. Ple

Re: librsvg

2005-03-15 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John Taber <[EMAIL PROTECTED]> writes: > Are there any examples of using librsvg in gtkmm to display a svg > drawing or map ? You can use Gdk::Pixbuf to load an SVG image. librsvg isn't used directly. Regards, Roger

Re: Gtk::Fixed or Gtk::DrawingArea(Porting DBDesigner to c++ & gtkmm)

2005-02-19 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bart Verstraete <[EMAIL PROTECTED]> writes: [Please do trim extraneous lines when replying] > Roger Leigh wrote: > For the main display area, a GnomeCanvas would be a good solution. > You can create the tables from a derived G

Re: Gtk::Fixed or Gtk::DrawingArea(Porting DBDesigner to c++ & gtkmm)

2005-02-19 Thread Roger Leigh
els. For the palettes and lists on the right, GtkTreeView will do the job. - -- Roger Leigh Printing on GNU/Linux? http://gimp-print.sourceforge.net/ Debian GNU/Linuxhttp://www.debian.org/ GPG Public Key: 0x25BFB848. Please sign an

Re: compiling pixbufs into an executable

2005-02-09 Thread Roger Leigh
uf from it). I recently discovered you could load SVG images as pixbufs, so I've now started using SVG for icons, cursors etc., since they are much nicer to modify and scale. You could also use gdk-pixbuf-csource to generate code direct from SVG. Regards, Roger - -- Roger Leigh

Re: Treeview signal cursor_changed()

2005-01-31 Thread Roger Leigh
use- > click or keyboard. > > Is there an other signal that can be used to solve this. Glib::RefPtr selection = treeview->get_selection(); selection->signal_changed().connect(...); ... if (selection->get_model().is_null() == false && selection->count_selected_rows()