example-3.cc
来自「Developing with Gnome一书examples例子代码」· CC 代码 · 共 33 行
CC
33 行
/* This program displays a couple checkboxes and shows how to change * button labels, how to make widgets sensitive or unsensitive, how to * determine if a checkbox is active, how to provide access keys for * quick keyboard navigation, how to pass other widgets to callbacks * besides the one that receives the event, and how to manually get * gtkmm to update widgets without returning to the main event loop. */#include <gtkmm.h>#include <libglademm/xml.h>#include "ExampleWindow.h"using namespace std;intmain (int argc, char *argv[]){ Glib::RefPtr<Gnome::Glade::Xml> main_window; Gtk::Main kit(argc, argv); // load the interface main_window = Gnome::Glade::Xml::create("example-3.glade"); // Get the main window ExampleWindow* window; main_window->get_widget_derived("OptionWindow", window); // start the event loop Gtk::Main::run( *window ); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?