[glom] Use Gtk::ApplicationWindow.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Use Gtk::ApplicationWindow.
- Date: Thu, 1 Mar 2012 08:34:30 +0000 (UTC)
commit 3e3b77ccd6e22ecf9bb23fbf3e7f19c2d65715f5
Author: Murray Cumming <murrayc murrayc com>
Date: Wed Feb 29 10:52:12 2012 +0100
Use Gtk::ApplicationWindow.
* glom/bakery/appwindow_withdoc_gtk.[h|cc]: Use Gtk::ApplicationWindow
instead of Gtk::Window.
ChangeLog | 7 +++++++
glom/bakery/appwindow_withdoc_gtk.cc | 2 +-
glom/bakery/appwindow_withdoc_gtk.h | 5 +++--
3 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 97fd114..ac75e85 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-02-29 Murray Cumming <murrayc murrayc com>
+
+ Use Gtk::ApplicationWindow.
+
+ * glom/bakery/appwindow_withdoc_gtk.[h|cc]: Use Gtk::ApplicationWindow
+ instead of Gtk::Window.
+
2012-02-15 Murray Cumming <murrayc murrayc com>
Remove now-unnecessary call to init_gtkmm.
diff --git a/glom/bakery/appwindow_withdoc_gtk.cc b/glom/bakery/appwindow_withdoc_gtk.cc
index 9f4b7c1..6aeaaee 100644
--- a/glom/bakery/appwindow_withdoc_gtk.cc
+++ b/glom/bakery/appwindow_withdoc_gtk.cc
@@ -280,7 +280,7 @@ void AppWindow_WithDoc_Gtk::init_menus_edit()
//Edit menu
//Build actions:
- m_refEditActionGroup = ActionGroup::create("BakeryEditActions");
+ m_refEditActionGroup = Gtk::ActionGroup::create("BakeryEditActions");
m_refEditActionGroup->add(Action::create("BakeryAction_Menu_Edit", _("_Edit")));
m_refEditActionGroup->add(Action::create("BakeryAction_Edit_Cut", Gtk::Stock::CUT),
diff --git a/glom/bakery/appwindow_withdoc_gtk.h b/glom/bakery/appwindow_withdoc_gtk.h
index 09f7ba5..f3d3a3b 100644
--- a/glom/bakery/appwindow_withdoc_gtk.h
+++ b/glom/bakery/appwindow_withdoc_gtk.h
@@ -29,6 +29,7 @@
#include <gtkmm/handlebox.h>
#include <gtkmm/uimanager.h>
#include <gtkmm/builder.h>
+#include <gtkmm/applicationwindow.h>
#include <libglom/document/bakery/document.h>
@@ -48,10 +49,10 @@ namespace GlomBakery
*/
class AppWindow_WithDoc_Gtk
: public AppWindow_WithDoc,
- public Gtk::Window //inherit virtually to share sigc::trackable.
+ public Gtk::ApplicationWindow //inherit virtually to share sigc::trackable.
{
public:
- typedef Gtk::Window ParentWindow;
+ typedef Gtk::ApplicationWindow ParentWindow;
///Don't forget to call init() too.
AppWindow_WithDoc_Gtk(const Glib::ustring& appname);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]