example-2.cc
来自「Developing with Gnome一书examples例子代码」· CC 代码 · 共 31 行
CC
31 行
// This program monitors the// /apps/nautilus/preferences/always_use_browser,// /apps/nautilus/preferences/show_image_thumbnails, and// /apps/nautilus/preferences/thumbnail_limit gconf keys, and allows// the user to change them as well.#include "ExampleWindow.h"using namespace std;intmain (int argc, char *argv[]){ Gnome::Conf::init(); Gtk::Main kit(argc, argv); Glib::RefPtr<Gnome::Glade::Xml> all_da_widgets; // load the interface all_da_widgets = Gnome::Glade::Xml::create("example-2.glade"); // Get the main window ExampleWindow* 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 + -
显示快捷键?