example-4.cc
来自「Developing with Gnome一书examples例子代码」· CC 代码 · 共 33 行
CC
33 行
/* This program shows a preferences window, which contains * RadioButtons, a color selection widget, and a font selection * widget. It pops up a (modal) window to confirm whether the user * really wants to exit, demonstrates how to use pango markup, and * shows how to manually free the memory used by widgets when they're * not wanted any more. */#include <gtkmm.h>#include <libglademm/xml.h>#include "PreferencesWindow.h"using namespace std;intmain (int argc, char *argv[]){ Glib::RefPtr<Gnome::Glade::Xml> all_da_widgets; Gtk::Main kit(argc, argv); // load the interface all_da_widgets = Gnome::Glade::Xml::create("example-4.glade"); // Get the main window PreferencesWindow* window; all_da_widgets->get_widget_derived("MainWindow", window); // start the event loop Gtk::Main::run( *window ); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?