From a1801762c0ca10e6e00283c6a4c5eeb7c35041ee Mon Sep 17 00:00:00 2001 From: daleclack Date: Thu, 11 Jan 2024 18:48:46 +0800 Subject: [PATCH] enable append to the list --- Gtkmm4/gtk157_editlist/src/MainWin.cc | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Gtkmm4/gtk157_editlist/src/MainWin.cc b/Gtkmm4/gtk157_editlist/src/MainWin.cc index 294acfd..9777a13 100644 --- a/Gtkmm4/gtk157_editlist/src/MainWin.cc +++ b/Gtkmm4/gtk157_editlist/src/MainWin.cc @@ -161,16 +161,8 @@ void MainWin::bind_version(const Glib::RefPtr &item) void MainWin::btnadd_clicked() { - // Glib::ustring entry_str; - - // // Get String from entry - // entry_str = item_entry.get_text(); - - // // Append text to the list - // if (!entry_str.empty()) - // { - // dropdown_list->append(entry_str); - // } + // Append a item to the list + main_list->append(ModelColumns::create(" ", " ")); } void MainWin::btnremove_clicked()