Re: pure libglademm applications

2006-09-30 Thread Rob Page
Hi wj, I found this tutorial really helpful when I was learning it. http://www.pebble.org.uk/programming/libglademm_simple Rob. On 9/30/06, weijie [EMAIL PROTECTED] wrote: Hi all, Due to the lack of a good libglademm tutorial, I've decided to read the source of apps which use libglademm

Re: create a directory

2006-06-22 Thread Rob Page
It is a convenience wrapper on POSIX systems, but it does sensible stuff on windows, as i understand. Regards, Rob. On 6/22/06, Bob Caryl [EMAIL PROTECTED] wrote: g_mkdir() is just a convenience wrapper for the POSIX mkdir() function. Bob Mickael Drean wrote: Hi there, a simple

Re: gtkmm.org down?

2006-04-18 Thread rob page
Seems to be working now. Rob. On 18/04/06, Murray Cumming [EMAIL PROTECTED] wrote: On Tue, 2006-04-18 at 10:55 -0500, Jonathon Jongsma wrote: Is the gtkmm website down? I don't get anything but a blank index page and 404s for everything else. It does seem to be down. It was working about

Re: Objective-C glib wrapper

2006-03-20 Thread rob page
Hi Marcin, - Is glib designed for this (and if yes, isn't it only for C++?)? As I understand it, glib was designed in a very similar way to gtk, and so, the experience of wrapping it should be the same as that of wrapping gtk. gtk has been wrapped to lots of languages already, see here for info:

Re: Graphs

2006-03-11 Thread rob page
You probably want to be using something like the Drawing Area Widget. Link to relevant documentation: http://www.gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/ch15.html Hope that helps, Rob. On 11/03/06, Nalin Singal [EMAIL PROTECTED] wrote: Is there a way to create a graph in GTK or GTKmm which

Re: [gtkmm] How to set visible cursor position

2006-03-03 Thread rob page
You can use place_cursor to move the cursor, http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1TextBuffer.html#1dff95f7dc9ea889a25596a87b2f8c35 And one of the scroll_to methods to move the view.

Re: Deriving from Gtk::Dialog, setting parent, and Glade

2006-02-28 Thread rob page
I think you might want to try: dialog.set_transient_for(Window parent) http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Window.html#a117 Rob. On 28/02/06, Michael Ekstrand [EMAIL PROTECTED] wrote: Hello all: My program currently has a class derived from Gtk::Dialog to

Re: Work with classesin C++

2006-02-27 Thread rob page
I think it would help if you could show the OptionsPane constructer, as I think this is where the problem might be occuring. Rob. On 27/02/06, Carlos Garces [EMAIL PROTECTED] wrote: Hi. I have a problem with classes in C++ I'm reading a tutorial (http://www.cplusplus.com/doc/tutorial/) but I

Re: Config files

2006-02-20 Thread rob page
GKeyFile is probably what you're after. Unfortunately the wrapper for this isn't yet in glibmm, although there is a patch for it in bugzilla, see this bug for more info http://bugzilla.gnome.org/show_bug.cgi?id=330535 You might be better off using the C version for now, see:

Wrapping gboolean list[] for Glib::KeyFile

2006-02-16 Thread rob page
Hi All, I'm currently writing a wrapper for Glib::KeyFile, as per this bug: http://bugzilla.gnome.org/show_bug.cgi?id=330535 It is mostly done, but on trying to wrap get_boolean_list, i'm required to wrap a variable of type gboolean []. I can convert this to a Glib::ArrayHandlegboolean with

Re: Wrapping gboolean list[] for Glib::KeyFile

2006-02-16 Thread rob page
Yes, please use bool, and never use gboolean in public API. Is there an actual problem with the conversion in this case? I'll try and make the problem clearer by posting the code here: Glib::ArrayHandlebool KeyFile::get_boolean_list(const Glib::ustring group_name, const Glib::ustring key){

Re: synchronizing two spin buttons

2006-02-06 Thread rob page
At a guess.. i'd imagine it's because when the second callback happens it sets the spin button to the same value, which does not trigger a value_changed signal to be emitted. I remember being confused by this in some other widget. Possibly ComboBoxText, when you click... and then rechoose the

Re: Gtk::manage()

2006-01-24 Thread rob page
Yes? I know this. But if I want to delete only one widget and when I want do this? deleting it may work, you'll almost certainly have to also remove it from it's container aswell, it might be better not to use Gtk::manage for that widget. Rob. ___

Re: Question about delete_event_impl

2006-01-24 Thread rob page
In my one of my programs I have this: (AmyEdit derives from Gtk::Window) bool AmyEdit::on_delete_event(GdkEventAny* event) { if (edittabs-CloseAllTabs()) return false; return true; } If it returns On 24/01/06, J. Baltasar Garcia Perez-Schofield [EMAIL PROTECTED]

Re: Question about delete_event_impl

2006-01-24 Thread rob page
Blimey.. randomly falling on my keyboard has result in an early message send anyway.. if the on_delete_event returns false then the program closes, if it returns true.. it carries on running. Hope this helps. Rob. On 24/01/06, rob page [EMAIL PROTECTED] wrote: In my one of my programs I

Re: Button in a dialog

2006-01-24 Thread rob page
If you take the return value when you use Gtk::Dialog::run(), it should return the Gtk::RESPONSE of the button pressed, then you should loop on the return value until you get a Gtk::RESPONSE_CLOSE (or whatever your close button is returning). Rob. On 24/01/06, J. Baltasar Garcia Perez-Schofield

Re: convert int to Glib::ustring

2006-01-16 Thread rob page
A function I tend to have about: Glib::ustring itoa(int num){ std::ostringstream ostr; ostr num; Glib::ustring retVal = ostr.str(); return retVal; } Rob On 16/01/06, Volosatov Alexander [EMAIL PROTECTED] wrote: How to conver int or double value to

Re: How Much Money Would It Take For Someone To Wrap GtkSourceView?

2006-01-05 Thread rob page
Well... I've got a mostly done version of it in amyedit (http://amyedit.sf.net), but you'll have to grab the version from cvs as i've made a fair few changes recently... Enjoy :) On 05/01/06, Jason Alan Smith [EMAIL PROTECTED] wrote: Hello: From the brief searching I did, it looks like

Re: Toolbar buttons

2005-12-30 Thread rob page
My understanding is that you *should* leave this as it is... and the users current theme will handle it In xfce4 you can change it in User Interface options... that said however you can change it with: Gtk::Toolbar::set_toolbar_style(ToolbarStyle style) and I think you'll be wanting to

Re: Two programs

2005-12-21 Thread rob page
I think you'll be wanting to use the Glib::spawn family of commands take a look at http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/group__Spawn.html for more info.. Rob. On 21/12/05, Volosatov Alexander [EMAIL PROTECTED] wrote: first program - GUI second program (dos) - kernel

Re: Must widgets stay in context?

2005-12-14 Thread rob page
I believe you want to be using Gtk::manage advbox-add(*Gtk::manage(new class Gtk::Label(_(Misc Settings; (code ripped from one of my programs) which should be much easier to use dynamically. Rob. On 14/12/05, Karen Pease [EMAIL PROTECTED] wrote: Hi - I'm new to gtkmm, and still just

Re: Must widgets stay in context?

2005-12-14 Thread rob page
regarding this: does GTK have some sort of garbage-collection management, or are all of the manage()ed widgets finally freed at runtime? On 12/14/05, rob page [EMAIL PROTECTED] wrote: I believe you want to be using Gtk::manage advbox-add(*Gtk::manage(new class Gtk::Label(_(Misc Settings

Re: Setting font to generic style (monospace)

2005-12-09 Thread rob page
When I've needed to do this, I've used: sourceview-modify_font(Pango::FontDescription(monospace)); Rob. On 09/12/05, Daniel Kraft [EMAIL PROTECTED] wrote: Hi! I'm trying to set the font of a TextView GTKmm-component; therefore I need a Pango::FontDescription, for which I need the font

Re: Home grown error dialog

2005-12-08 Thread rob page
Could it be this bug? http://gcc.gnu.org/ml/gcc-bugs/2004-06/msg03111.html Rob. On 08/12/05, Bob Caryl [EMAIL PROTECTED] wrote: Hey guys: I created my own little version of Gtk::MessageDialog that uses stdargs.h to create its message string. It is part of a little dynamic library I link

Re: How to add a custom icon image to a Gtk::RadioToolButton after it is created

2005-11-13 Thread rob page
Howdy. Well... if I were doing it i'd be going about it exactly the same way... so my first guess is it may be a bug you could also try using set_label_widget... which, if you need a label as well, you could put them both in an hbox although this certainly isn't as elegant... Rob. On

Re: Windows Stacking

2005-11-03 Thread rob page
Hi Andreas, I think you might want to try using the set_transient_for function: http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Window.html#a113 No idea if it'll work on win32 though i'm afraid... Hope that's what you're after, Rob. 2005/10/26, Andreas Volz [EMAIL

Re: Attaching a signal handler to menus created by hand - Not using UI Manager or Menu Helper methods

2005-06-30 Thread rob page
instead of : file_new.signal_activate().connect(*this, sigc::mem_fun(Edm_Main_Menu::OnFileNew)); try: file_new.signal_activate().connect( sigc::mem_fun(*this, Edm_Main_Menu::OnFileNew)); Hope that helps. Rob. On 6/28/05, Jason Alan Smith [EMAIL PROTECTED] wrote: Hello, I have an

Re: TextView

2005-06-12 Thread rob page
I think you'll be wanting one of the spawn commands pretty sure it's spawn_async_with_pipes : http://www.gtkmm.org/docs/glibmm-2.4/docs/reference/html/group__Spawn.html#ga0 Rob. On 6/12/05, Arthur [EMAIL PROTECTED] wrote: Hi, guys. How are you? I writing a program which runs the

Re: linking with pkg-config and autoconf

2005-05-02 Thread rob page
Oops, an addition to my Makefile.am that might be important, i'm afraid i don't know what it does, :S. I don't think the tutorial I was using explained it... amyedit_LDAA = $(AMYEDIT_LIBS) On 5/2/05, rob page [EMAIL PROTECTED] wrote: Hi Dieter, Seeing as its a linking error, i'd guess

Re: new_from_stock

2005-04-23 Thread rob page
What version of gtkmm are you using? On 4/23/05, Emre Turkay [EMAIL PROTECTED] wrote: Hi Folks, In the gtkmm documentation for Gtk::Image (and therefore in some .h files distributed with gtkmm) the method Gtk::Image::new_from_stock() is referred, however I couldn't find where it is

Re: Feature request: Number of matches in Gtk::EntryCompletion

2005-04-22 Thread rob page
I think this should be directed at the gtk mailing list as gtkmm is just a wrapper for that and isn't supposed to extend gtk Rob. On 4/20/05, Matthias Kaeppler [EMAIL PROTECTED] wrote: You should really be able to figure out how many matches were found. This whole EntryCompletion class is a