[gtkmm] Remove unnecessary _IGNORE()
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Remove unnecessary _IGNORE()
- Date: Thu, 30 Jul 2015 17:45:33 +0000 (UTC)
commit 316361f85ea6bdd0b3c7138e8ed9a251c0f67626
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date: Thu Jul 30 19:38:38 2015 +0200
Remove unnecessary _IGNORE()
* gdk/src/window.hg:
* gtk/src/<many>.hg: Remove _IGNORE() directives that have become
unnecessary when the .defs files don't contain information from private.h
files. gmmproc warns about unnecessary _IGNORE().
gdk/src/window.hg | 3 +--
gtk/src/adjustment.hg | 5 -----
gtk/src/application.hg | 5 -----
gtk/src/applicationwindow.hg | 3 ---
gtk/src/combobox.hg | 5 +----
gtk/src/dialog.hg | 2 --
gtk/src/eventcontroller.hg | 1 -
gtk/src/placessidebar.hg | 1 -
gtk/src/popover.hg | 3 ---
gtk/src/printjob.hg | 1 -
gtk/src/window.hg | 3 +--
11 files changed, 3 insertions(+), 29 deletions(-)
---
diff --git a/gdk/src/window.hg b/gdk/src/window.hg
index 971b8d7..78183a2 100644
--- a/gdk/src/window.hg
+++ b/gdk/src/window.hg
@@ -58,8 +58,7 @@ class Window : public Glib::Object
{
_CLASS_GOBJECT(Window, GdkWindow, GDK_WINDOW, Glib::Object, GObject)
_STRUCT_NOT_HIDDEN
- _IGNORE(gdk_window_destroy, gdk_window_new)
- _IGNORE(gdk_window_destroy_notify, gdk_window_is_destroyed)
+ _IGNORE(gdk_window_destroy, gdk_window_new, gdk_window_is_destroyed)
protected:
Window(const Glib::RefPtr<Window>& parent, GdkWindowAttr* attributes, int attributes_mask);
diff --git a/gtk/src/adjustment.hg b/gtk/src/adjustment.hg
index 1f1f64d..71be6e9 100644
--- a/gtk/src/adjustment.hg
+++ b/gtk/src/adjustment.hg
@@ -92,11 +92,6 @@ public:
_WRAP_METHOD(double get_minimum_increment() const, gtk_adjustment_get_minimum_increment)
- //Ignore private methods.
- _IGNORE(gtk_adjustment_enable_animation, gtk_adjustment_get_animation_duration,
- gtk_adjustment_animate_to_value, gtk_adjustment_get_target_value,
- gtk_adjustment_is_animating)
-
_WRAP_SIGNAL(void changed(), "changed")
_WRAP_SIGNAL(void value_changed(), "value_changed")
diff --git a/gtk/src/application.hg b/gtk/src/application.hg
index 16660e8..5926bec 100644
--- a/gtk/src/application.hg
+++ b/gtk/src/application.hg
@@ -120,11 +120,6 @@ protected:
explicit Application(const Glib::ustring& application_id = Glib::ustring(), Gio::ApplicationFlags flags =
Gio::APPLICATION_FLAGS_NONE);
_IGNORE(gtk_application_new)
_IGNORE(gtk_application_window_new)
- _IGNORE(gtk_application_impl_new)
- _IGNORE(gtk_application_handle_window_realize, gtk_application_handle_window_map,
- gtk_application_insert_action_group, gtk_application_foreach_accel_keys,
- gtk_application_get_action_muxer, gtk_application_activate_accel)
-
//This constructor does not correspond to anything in the C API.
diff --git a/gtk/src/applicationwindow.hg b/gtk/src/applicationwindow.hg
index b56c08b..8881a7e 100644
--- a/gtk/src/applicationwindow.hg
+++ b/gtk/src/applicationwindow.hg
@@ -85,9 +85,6 @@ public:
_WRAP_METHOD(guint get_id() const, gtk_application_window_get_id)
- //Ignore private functions.
- _IGNORE(gtk_application_window_set_id, gtk_application_window_get_action_group)
-
_WRAP_PROPERTY("show-menubar", bool)
};
diff --git a/gtk/src/combobox.hg b/gtk/src/combobox.hg
index c8fb947..8fb6b39 100644
--- a/gtk/src/combobox.hg
+++ b/gtk/src/combobox.hg
@@ -211,9 +211,6 @@ public:
*/
const Entry* get_entry() const;
- //Ignore private functions.
- _IGNORE(gtk_combo_box_get_popup)
-
_WRAP_PROPERTY("model", Glib::RefPtr<TreeModel>)
_WRAP_PROPERTY("wrap_width", int)
@@ -235,7 +232,7 @@ public:
_WRAP_SIGNAL(void changed(), "changed")
-//TODO: Remove no_defualt_handler when we can break ABI
+//TODO: Remove no_default_handler when we can break ABI
#m4 dnl// The ::format_value signal handler should return a newly allocated string.
#m4 dnl// (which is obviously not a const gchar*)
#m4 _CONVERSION(`Glib::ustring',`const gchar*',`(strlen($3.c_str()) ? g_strdup($3.c_str()) : 0)')
diff --git a/gtk/src/dialog.hg b/gtk/src/dialog.hg
index 55cf17f..7de09f6 100644
--- a/gtk/src/dialog.hg
+++ b/gtk/src/dialog.hg
@@ -179,8 +179,6 @@ _DEPRECATE_IFDEF_END
_WRAP_METHOD(HeaderBar* get_header_bar(), gtk_dialog_get_header_bar) // transfer none
_WRAP_METHOD(const HeaderBar* get_header_bar() const, gtk_dialog_get_header_bar, constversion) // transfer
none
- _IGNORE(gtk_dialog_set_use_header_bar_from_setting) //A convenience helper for built-in dialogs
-
_WRAP_SIGNAL(void response(int response_id), "response")
//_WRAP_PROPERTY("has-separator", bool) //deprecated.
diff --git a/gtk/src/eventcontroller.hg b/gtk/src/eventcontroller.hg
index 5818ea5..16ce60e 100644
--- a/gtk/src/eventcontroller.hg
+++ b/gtk/src/eventcontroller.hg
@@ -66,7 +66,6 @@ protected:
public:
// No create() because only derived classes shall be instantiated.
- _IGNORE(gtk_event_controller_get_event_mask, gtk_event_controller_set_event_mask) dnl// private
_WRAP_METHOD(Widget* get_widget(), gtk_event_controller_get_widget)
_WRAP_METHOD(const Widget* get_widget() const, gtk_event_controller_get_widget, constversion)
diff --git a/gtk/src/placessidebar.hg b/gtk/src/placessidebar.hg
index de230d4..e55aca8 100644
--- a/gtk/src/placessidebar.hg
+++ b/gtk/src/placessidebar.hg
@@ -63,7 +63,6 @@ class PlacesSidebar
{
_CLASS_GTKOBJECT(PlacesSidebar, GtkPlacesSidebar, GTK_PLACES_SIDEBAR, Gtk::ScrolledWindow,
GtkScrolledWindow)
public:
- _IGNORE(gtk_places_sidebar_get_location_title)dnl//Private function
/** Creates a new Gtk::PlacesSidebar widget.
*
diff --git a/gtk/src/popover.hg b/gtk/src/popover.hg
index 5e7aa1d..a0d5647 100644
--- a/gtk/src/popover.hg
+++ b/gtk/src/popover.hg
@@ -127,9 +127,6 @@ public:
_WRAP_METHOD(Widget* get_default_widget(), gtk_popover_get_default_widget)
_WRAP_METHOD(const Widget* get_default_widget() const, gtk_popover_get_default_widget, constversion)
- //Ignore private methods.
- _IGNORE(gtk_popover_update_position)
-
_WRAP_PROPERTY("relative-to", Widget*)
_WRAP_PROPERTY("pointing-to", Gdk::Rectangle)
_WRAP_PROPERTY("position", PositionType)
diff --git a/gtk/src/printjob.hg b/gtk/src/printjob.hg
index fba56a7..c178938 100644
--- a/gtk/src/printjob.hg
+++ b/gtk/src/printjob.hg
@@ -58,7 +58,6 @@ public:
_WRAP_METHOD(Glib::ustring get_title() const, gtk_print_job_get_title)
_WRAP_METHOD(PrintStatus get_status() const, gtk_print_job_get_status)
- _IGNORE(gtk_print_job_set_status) // this appears in gtkprinter-private.h
_WRAP_METHOD(void set_source_file(const std::string& filename), gtk_print_job_set_source_file, errthrow)
#m4 _CONVERSION(`cairo_surface_t*',`Cairo::RefPtr<Cairo::Surface>',`Cairo::RefPtr<Cairo::Surface>(new
Cairo::Surface($3, false /* take reference */))')
diff --git a/gtk/src/window.hg b/gtk/src/window.hg
index 1daf602..193ea8d 100644
--- a/gtk/src/window.hg
+++ b/gtk/src/window.hg
@@ -45,8 +45,7 @@ class Window : public Bin
{
_CLASS_GTKOBJECT(Window,GtkWindow,GTK_WINDOW,Gtk::Bin,GtkBin)
_UNMANAGEABLE
- _IGNORE(gtk_window_set_has_user_ref_count, gtk_window_set_destroy_with_parent,
gtk_window_get_icon_for_size,
- gtk_window_set_use_subsurface, gtk_window_set_hardcoded_window)
+ _IGNORE(gtk_window_set_has_user_ref_count, gtk_window_set_destroy_with_parent)
//TODO: Use gtk_window_set_destroy_with_parent() to allow use of Gtk::manage() with top-level windows,
using the transient-parent?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]