Re: Glade, libglade and Gtk::ComboBox
- From: Ed Leaver <eleaver sterlingseismic com>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm mailing list <gtkmm-list gnome org>
- Subject: Re: Glade, libglade and Gtk::ComboBox
- Date: Thu, 02 Mar 2006 13:14:20 -0700
On Thu, 2006-03-02 at 04:27, Murray Cumming wrote:
On Sat, 2006-02-25 at 14:37 -0700, Ed Leaver wrote:
> On Sat, 2006-02-25 at 09:02, Nathan Hüsken wrote:
> > Hello together,
> >
> > I am designing my GUI with glade, loading it with libglade.
> > Now, I want a Gtk::ComboBox (and not Gtk::ComboBoxEntry beacuse I do
> > not want it to be editeable). Unfortanly, I can not find it, I can only
> > find Gtk::Combo.
> > Gtk::Combo I can not find in the Documentation, don't know hot to use
> > it ... how do I get my ComboBox?
> > Thanks!
> > Nathan
> Hmmm. I'm beginning to think there may be reason(s) Murray has certain
> reservations about Glade.
I have no reservations about Glade. Glade is wonderful. But code
generation with Glade (or any code generation) is silly, though (to be
fair) glademm is not quite as bad as the generated C code.
Although I personally have found glademm's code generation to be very convenient, since joining this list I have discovered that view to be less than universally shared. Perhaps there is a reason, and perhaps I've still one or two things left to learn. Psi. Later. Next Project...
> What I think is happening is that Gtk::Combo is a widget from
> gtkmm-2.2 that has been deprecated in gtkmm-2.4 and replaced with
> Gtk::ComboBox. Except that Glade hasn't gotten around to it yet.
I think someone is just using an old version of Glade.
[snip]
I think you are right -- at least that is what John Spray has explained. I recently moved from Glade-2.0 to Glade-2.6 (CentOS-4.2) and it still generates the old gtkmm-2.2 code. But in this case that is what I want, at least for the present, because I reference a lot of those old gtkmm-2.2isms (e.g. Combo rather than ComboBox) in my own code, and as it works, I don't want to update it just now.
In the future I will, either in a refactor of this project, or the next one. One question I will address then (unless you or someone else can answer it now) is whether Glade-2.6 is generating the old gtkmm-2.2 widgets because (a) it just doesn't know about gtkmm-2.4, or (b) it does know about gtkmm-2.4 but has somehow detected the gtkmm-2.2 usage in my extant XYZ_glade.hh headers and is benevolent enough not to change them. Which is something less than a really critical question because by the time I get to where it makes any real difference, I'll probably be on CentOS-4.3 and whatever newer (2.10? 2.12?) version of Glade they include there.
Thanks for your reply!
Ed
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]