[gtkmm-documentation/gmenu] MainMenu example: Use change_state(), not set_state().
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm-documentation/gmenu] MainMenu example: Use change_state(), not set_state().
- Date: Fri, 9 Aug 2013 09:55:28 +0000 (UTC)
commit 695466fb2e6f0e1c27e5ecdd58ed1c1d5858a06a
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Aug 9 11:55:11 2013 +0200
MainMenu example: Use change_state(), not set_state().
Action::set_state() should probably be private.
examples/book/menus/main_menu/examplewindow.cc | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/examples/book/menus/main_menu/examplewindow.cc b/examples/book/menus/main_menu/examplewindow.cc
index 24b02ed..2f0ed1c 100644
--- a/examples/book/menus/main_menu/examplewindow.cc
+++ b/examples/book/menus/main_menu/examplewindow.cc
@@ -231,7 +231,7 @@ void ExampleWindow::on_menu_others()
void ExampleWindow::on_menu_choices(const Glib::ustring& parameter)
{
//The radio action's state does not change automatically:
- m_refChoice->set_state(
+ m_refChoice->change_state(
Glib::Variant<Glib::ustring>::create(parameter) );
Glib::ustring message;
@@ -246,7 +246,7 @@ void ExampleWindow::on_menu_choices(const Glib::ustring& parameter)
void ExampleWindow::on_menu_choices_other(int parameter)
{
//The radio action's state does not change automatically:
- m_refChoice->set_state(
+ m_refChoice->change_state(
Glib::Variant<int>::create(parameter) );
Glib::ustring message;
@@ -264,7 +264,7 @@ void ExampleWindow::on_menu_toggle()
m_refToggle->get_state(active);
//The toggle action's state does not change automatically:
- m_refToggle->set_state(
+ m_refToggle->change_state(
Glib::Variant<bool>::create(!active) );
active = !active;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]