[gtkmm-documentation] Main Menu example: Fix a mix-up of variables
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm-documentation] Main Menu example: Fix a mix-up of variables
- Date: Wed, 9 Oct 2013 08:08:15 +0000 (UTC)
commit 9493e22858e217a2638ebe3f09d2c374144adfbb
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date: Wed Oct 9 10:01:33 2013 +0200
Main Menu example: Fix a mix-up of variables
* examples/book/menus/main_menu/examplewindow.cc:
on_menu_choices_other(): Use m_refChoiceOther instead of m_refChoice.
examples/book/menus/main_menu/examplewindow.cc | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/examples/book/menus/main_menu/examplewindow.cc b/examples/book/menus/main_menu/examplewindow.cc
index bb031e0..bf6b6e7 100644
--- a/examples/book/menus/main_menu/examplewindow.cc
+++ b/examples/book/menus/main_menu/examplewindow.cc
@@ -17,7 +17,6 @@
*/
#include "examplewindow.h"
-#include <gtkmm/stock.h>
#include <iostream>
ExampleWindow::ExampleWindow()
@@ -253,7 +252,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->change_state(parameter);
+ m_refChoiceOther->change_state(parameter);
Glib::ustring message;
if(parameter == 1)
@@ -281,5 +280,3 @@ void ExampleWindow::on_menu_toggle()
std::cout << message << std::endl;
}
-
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]