[glom] Fix the build with latest gtkmm 2.91.2
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Fix the build with latest gtkmm 2.91.2
- Date: Wed, 27 Oct 2010 10:45:10 +0000 (UTC)
commit e8b062c4236e994cdfcebd2aed2d49988ed74ec1
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Oct 27 12:44:58 2010 +0200
Fix the build with latest gtkmm 2.91.2
* glom/mode_design/dialog_add_related_table.cc:
* glom/mode_design/fields/dialog_fielddefinition.cc:
* glom/mode_design/script_library/dialog_script_library.cc:
* glom/mode_design/users/dialog_users_list.cc: Use ComboBoxText::remove_all()
instead of clear_items().
ChangeLog | 10 ++++++++++
glom/mode_design/dialog_add_related_table.cc | 2 +-
glom/mode_design/fields/dialog_fielddefinition.cc | 2 +-
.../script_library/dialog_script_library.cc | 2 +-
glom/mode_design/users/dialog_users_list.cc | 4 ++--
5 files changed, 15 insertions(+), 5 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 98be3eb..2d51eb7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2010-10-27 Murray Cumming <murrayc murrayc com>
+
+ Fix the build with latest gtkmm 2.91.2
+
+ * glom/mode_design/dialog_add_related_table.cc:
+ * glom/mode_design/fields/dialog_fielddefinition.cc:
+ * glom/mode_design/script_library/dialog_script_library.cc:
+ * glom/mode_design/users/dialog_users_list.cc: Use ComboBoxText::remove_all()
+ instead of clear_items().
+
2010-10-19 Murray Cumming <murrayc murrayc com>
libglom: Change the ABI to 1.20, to avoid clashing with 1.16.
diff --git a/glom/mode_design/dialog_add_related_table.cc b/glom/mode_design/dialog_add_related_table.cc
index 218be5c..8bb0605 100644
--- a/glom/mode_design/dialog_add_related_table.cc
+++ b/glom/mode_design/dialog_add_related_table.cc
@@ -72,7 +72,7 @@ void Dialog_AddRelatedTable::set_fields(const Glib::ustring& table_name)
const type_vec_fields fields = DbUtils::get_fields_for_table_from_database(table_name);
//Show the fields:
- m_combo_from_field->clear_items();
+ m_combo_from_field->remove_all();
for(type_vec_fields::const_iterator iter = fields.begin(); iter != fields.end(); ++iter)
{
sharedptr<Field> item = *iter;
diff --git a/glom/mode_design/fields/dialog_fielddefinition.cc b/glom/mode_design/fields/dialog_fielddefinition.cc
index 40b3ea7..7910f24 100644
--- a/glom/mode_design/fields/dialog_fielddefinition.cc
+++ b/glom/mode_design/fields/dialog_fielddefinition.cc
@@ -351,7 +351,7 @@ void Dialog_FieldDefinition::on_combo_lookup_relationship_changed()
{
//Get the fields that are avaiable from the new relationship:
- m_pCombo_LookupField->clear_items();
+ m_pCombo_LookupField->remove_all();
//Get the relationship name:
sharedptr<const Relationship> relationship = m_pCombo_LookupRelationship->get_selected_relationship();
diff --git a/glom/mode_design/script_library/dialog_script_library.cc b/glom/mode_design/script_library/dialog_script_library.cc
index 6e72779..0bc635d 100644
--- a/glom/mode_design/script_library/dialog_script_library.cc
+++ b/glom/mode_design/script_library/dialog_script_library.cc
@@ -202,7 +202,7 @@ void Dialog_ScriptLibrary::load_from_document()
return;
const std::vector<Glib::ustring> module_names = document->get_library_module_names();
- m_combobox_name->clear_items();
+ m_combobox_name->remove_all();
for(std::vector<Glib::ustring>::const_iterator iter = module_names.begin(); iter != module_names.end(); ++iter)
{
diff --git a/glom/mode_design/users/dialog_users_list.cc b/glom/mode_design/users/dialog_users_list.cc
index 95608d7..07c8ffd 100644
--- a/glom/mode_design/users/dialog_users_list.cc
+++ b/glom/mode_design/users/dialog_users_list.cc
@@ -286,7 +286,7 @@ void Dialog_UsersList::on_button_user_edit()
dialog->m_entry_user->set_sensitive(false); //They can edit the password, but not the name. TODO: Allow editing of name?
//Fill groups:
- dialog->m_combo_group->clear_items();
+ dialog->m_combo_group->remove_all();
type_vec_strings group_list = Privs::get_database_groups();
for(type_vec_strings::const_iterator iter = group_list.begin(); iter != group_list.end(); ++iter)
@@ -379,7 +379,7 @@ void Dialog_UsersList::fill_list()
void Dialog_UsersList::set_group(const Glib::ustring& group_name)
{
//Fill the list of groups:
- m_combo_group->clear_items();
+ m_combo_group->remove_all();
type_vec_strings group_list = Privs::get_database_groups();
for(type_vec_strings::const_iterator iter = group_list.begin(); iter != group_list.end(); ++iter)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]