[gtkmm] Remove Gtk::Application until later.



commit 83f5d5f1ab792ff823d5748265907be97e422aea
Author: Murray Cumming <murrayc murrayc com>
Date:   Wed Mar 23 16:15:50 2011 +0100

    Remove Gtk::Application until later.
    
    * gtk/src/application.[hg|ccg]: Removed this file.
    * gtk/src/filelist.am: Remove mention of the file.
    * gtk/src/window.hg: Remove API that uses the Application class.
    
      See http://bugzilla.gnome.org/show_bug.cgi?id=637445#c17

 ChangeLog                    |   10 +++
 gtk/gtkmm.h                  |    1 -
 gtk/src/appchooserdialog.ccg |    4 +-
 gtk/src/application.ccg      |  172 ----------------------------------------
 gtk/src/application.hg       |  179 ------------------------------------------
 gtk/src/filelist.am          |    1 -
 gtk/src/window.ccg           |    5 -
 gtk/src/window.hg            |   12 ---
 8 files changed, 12 insertions(+), 372 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ff4f8b2..5dc1cb3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2011-03-23  Murray Cumming  <murrayc murrayc com>
+
+	Remove Gtk::Application until later.
+
+	* gtk/src/application.[hg|ccg]: Removed this file.
+	* gtk/src/filelist.am: Remove mention of the file.
+	* gtk/src/window.hg: Remove API that uses the Application class.
+
+  See http://bugzilla.gnome.org/show_bug.cgi?id=637445#c17
+
 2.99.6:
 
 2011-03-16  Murray Cumming  <murrayc murrayc-desktop>
diff --git a/gtk/gtkmm.h b/gtk/gtkmm.h
index c9bf1bb..86d0a62 100644
--- a/gtk/gtkmm.h
+++ b/gtk/gtkmm.h
@@ -101,7 +101,6 @@ extern const int gtkmm_micro_version;
 #include <gtkmm/appchooserbutton.h>
 #include <gtkmm/appchooserdialog.h>
 #include <gtkmm/appchooserwidget.h>
-#include <gtkmm/application.h>
 #include <gtkmm/arrow.h>
 #include <gtkmm/aspectframe.h>
 #include <gtkmm/assistant.h>
diff --git a/gtk/src/appchooserdialog.ccg b/gtk/src/appchooserdialog.ccg
index 5cada2b..696d5a5 100644
--- a/gtk/src/appchooserdialog.ccg
+++ b/gtk/src/appchooserdialog.ccg
@@ -16,6 +16,7 @@
  */
 
 #include <gtk/gtk.h>
+#include <giomm/file.h>
 
 namespace Gtk
 {
@@ -45,6 +46,5 @@ AppChooserDialog::AppChooserDialog(const Glib::RefPtr<Gio::File>& file, Gtk::Win
 {
   set_transient_for(parent);
 }
-  
-} // namespace Gtk
 
+} // namespace Gtk
diff --git a/gtk/src/filelist.am b/gtk/src/filelist.am
index b296b7f..64439de 100644
--- a/gtk/src/filelist.am
+++ b/gtk/src/filelist.am
@@ -26,7 +26,6 @@ gtkmm_files_any_hg =		\
 	appchooserbutton.hg \
 	appchooserdialog.hg \
 	appchooserwidget.hg \
-	application.hg \
 	arrow.hg		\
 	aspectframe.hg		\
 	assistant.hg		\
diff --git a/gtk/src/window.ccg b/gtk/src/window.ccg
index c9a097f..2dd3e91 100644
--- a/gtk/src/window.ccg
+++ b/gtk/src/window.ccg
@@ -198,9 +198,4 @@ void Window::unset_transient_for()
   gtk_window_set_transient_for(gobj(), 0 /* See GTK+ docs */);
 }
 
-void Window::unset_application()
-{
-  gtk_window_set_application(gobj(), 0 /* See GTK+ docs */);
-}
-
 } // namespace Gtk
diff --git a/gtk/src/window.hg b/gtk/src/window.hg
index ea879d5..58c4ad0 100644
--- a/gtk/src/window.hg
+++ b/gtk/src/window.hg
@@ -23,7 +23,6 @@
 
 #include <glibmm/object.h>
 #include <gtkmm/bin.h>
-#include <gtkmm/application.h>
 
 _DEFS(gtkmm,gtk)
 _PINCLUDE(gtkmm/private/bin_p.h)
@@ -97,7 +96,6 @@ public:
   _WRAP_PROPERTY("accept-focus", bool)
   _WRAP_PROPERTY("focus-on-map", bool)
   _WRAP_PROPERTY("deletable", bool)
-  _WRAP_PROPERTY("application", Glib::RefPtr<Application>)
 
   _WRAP_SIGNAL(void set_focus(Widget* focus), "set_focus")
 
@@ -325,16 +323,6 @@ dnl
   _WRAP_METHOD(void reshow_with_initial_size(),
                gtk_window_reshow_with_initial_size)
 
-  _WRAP_METHOD(Glib::RefPtr<Application> get_application(), gtk_window_get_application, refreturn)
-  _WRAP_METHOD(Glib::RefPtr<const Application> get_application() const, gtk_window_get_application, refreturn)
-  
-  _WRAP_METHOD(void set_application(const Glib::RefPtr<Application>& application), gtk_window_set_application)
-  
-  /** Unsets the Application associated with the window.
-   * This could cause the application to exit if it is the application's last window.
-   */
-  void unset_application();
-                                                 
   _WRAP_METHOD(void set_has_resize_grip(bool setting = true), gtk_window_set_has_resize_grip)
   _WRAP_METHOD(bool get_has_resize_grip() const, gtk_window_get_has_resize_grip)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]