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 9208233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:34:23+00:00 2026-06-18T00:34:23+00:00

Hy, I have do Build a tool which shows the Content of an Database

  • 0

Hy,
I have do Build a tool which shows the Content of an Database that works fine but the user has to delete rows on click on a Button in the row.

This is what i have now for setting up the ListStore

def setup_tree_view(treeview)
 renderer = Gtk::CellRendererText.new
 renderer.foreground = "#ff0000"
 column   = Gtk::TreeViewColumn.new("Bestellnummer", renderer, :text => ID)
 treeview.append_column(column)
 renderer = Gtk::CellRendererText.new
 column   = Gtk::TreeViewColumn.new("Produkt", renderer,  :text => PRODUCT)
 treeview.append_column(column)
 renderer = Gtk::CellRendererText.new
 column   = Gtk::TreeViewColumn.new("Kunde", renderer, :text => CUSTOMER)
 treeview.append_column(column)
 renderer = Gtk::CellRendererText.new
 renderer = Gtk::CellRendererText.new
 column   = Gtk::TreeViewColumn.new("Kontakt", renderer, :text => CONTACT)
 treeview.append_column(column)
 renderer = Gtk::CellRendererToggle.new
 renderer.set_activatable true
 renderer.signal_connect('toggled') do |renderer, path|
   @handler.updateData ((@store.get_iter path).get_value ID), "ordered", toInt( (!((@store.get_iter path).get_value ORDERED)))
   @store.clear
   showData @handler.start
 end

 column   = Gtk::TreeViewColumn.new("Bestellt", renderer, :active => ORDERED)
 treeview.append_column(column)
 renderer = Gtk::CellRendererToggle.new
 renderer.signal_connect('toggled') do |renderer, path|
   @handler.updateData ((@store.get_iter path).get_value ID), "arrived", toInt( (!((@store.get_iter path).get_value ARRIVED)))
   @store.clear
   showData @handler.start
 end
 column   = Gtk::TreeViewColumn.new("Angekommen", renderer, :active => ARRIVED)
 treeview.append_column(column)
 renderer = Gtk::CellRendererToggle.new
 renderer.signal_connect('toggled') do |renderer, path|
   @handler.updateData ((@store.get_iter path).get_value ID), "informed", toInt( (!((@store.get_iter path).get_value ORDERED)))
   @store.clear
   showData @handler.start
 end
 column   = Gtk::TreeViewColumn.new("Informiert", renderer, :active => INFORMED)
 treeview.append_column(column)
end

Now I want to add a new column in which are the button to open the delete dialog but I can’t find a cell renderer which allow me to put a button into it.

How can I do that?

  • 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-06-18T00:34:24+00:00Added an answer on June 18, 2026 at 12:34 am

    You are correct there is no cell renderer that works like a GtkButton, so the only way would be to write your own cell renderer object.

    Here is a guide for writing your own renderers, although it is written for C, the principles would be the same.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to build the dojo tool kit for dojo optimisation. I have download
In the build process for a .NET C# tool, I have been using ILMerge
I have build C# program that work with RAPI (communication to PPC or WinCE)
I work on a parallel build tool which builds (among lots of other things)
Gamemaker is a neat tool which allows for some good RAD. However it has
I currently have built a tool in Excel 2003 which displays a series of
I am using an automated build tool called Automated Build Studio . I have
at my work we are presently looking for a automated build tool. We have
I have build a WCF template service which talks (original: discuss) with my EF
I'm new to build automation and Continuous Integration, but have done extensive research on

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.