Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7055517
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:45:30+00:00 2026-05-28T03:45:30+00:00

This is a follow-up question to this: How do I add a ComboBox to

  • 0

This is a follow-up question to this:
How do I add a ComboBox to a TreeView column?

I was able to place a ComboBox inside a TreeView with the options I need. But I can’t seem to figure out how to connect a signal handler to it. All the existing documentation shows connect statements like this:

m_Combo.signal_changed().connect(sigc::mem_fun(*this, &ExampleWindow::on_combo_changed) );

But I’m not inside a Window class definition, and thus have no *this object. I’m using Glade to create the basic structures of the GUI.

Also, all the existing documentation shows the signal handler doing something like this:

void ExampleWindow::on_combo_changed()
{
  Glib::ustring text = m_Combo.get_active_text();
  if(!(text.empty()))
    std::cout << "Combo changed: " << text << std::endl;
}

Where the “m_Combo” object is global, and can just be simply accessed. But When the ComboBox is inside a TreeView, it’s dynamic. How would I go about actually accessing the ComboBox? Pass something through via a parameter? The signal_changed().connect() function seems to be really picky about its parameters. No matter what I give it, it spits out (literally) 100 lines of gibberish in compiler errors. Ends with:

/usr/include/sigc++-2.0/sigc++/functors/mem_fun.h:6196:1: note: template<class T_arg1, class T_arg2, class T_arg3, class T_arg4, class T_arg5, class T_arg6, class T_arg7, class T_return, class T_obj, class T_obj2> sigc::bound_const_volatile_mem_functor7<T_return, T_obj, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7> sigc::mem_fun(T_obj&, T_return (T_obj2::*)(T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7)const volatile)
make: *** [src/RTT_Client_GTK.o] Error 1`

Not making my life trying to debug any easier.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:45:31+00:00Added an answer on May 28, 2026 at 3:45 am

    Firstly, if you’re using Glade to create your UI, it probably means that you’re using Gtk::Builder to load it (since Glade no longer supports its old .glade format). Gtk::Builder has a get_widget_derived() function that allows you to extract a widget from the GtkBuilder .xml file directly into your derived widget class.

    Secondly, you wouldn’t be using a ComboBox directly, but a CellRendererCombo if you’re using a TreeView. You would do something like:

    Gtk::CellRendererCombo *combo = manage (new Gtk::CellRendererCombo);
    combo->signal_changed ().connect (sigc::mem_fun (*this, &ExampleWindow::on_combo_changed);
    Gtk::TreeViewColumn *column = manage (new Gtk::TreeViewColumn ("Title", *combo));
    column->add_attribute (*combo, "model", model_column_record.combo_model);
    column->add_attribute (*combo, "text-column", model_column_record.combo_text_column);
    treeview.append_column (*column);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a follow-on question from the one I asked here . Can constraints
This is a follow up question to T-Sql xml query If I add a
This is kind of a follow-up question to Perl: add character to begin of
This is a follow up question from another post but that post was answered.
This is actually a follow up question to this " Why need to use
As a follow-up to this previous question , I'd like to add a title
this is a follow up question from my previous one. you can find it
This is a follow up question to a previous question I asked about calculating
This is a follow-up question to ASP.NET How to pass container value as javascript
This is a follow-up question to this question I asked earlier. Btw thanks Neil

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.