[gtkmm] Gtk::ShortcutsShortcut: Derive directly from Widget
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gtk::ShortcutsShortcut: Derive directly from Widget
- Date: Wed, 3 May 2017 09:17:52 +0000 (UTC)
commit 52f06cae6fd89f527bad7990a05b67af9550cd90
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Wed May 3 11:15:28 2017 +0200
Gtk::ShortcutsShortcut: Derive directly from Widget
GtkShortcutsShortcut is now derived directly from GtkWidget (was from GtkBox).
It was changed more than 3 months ago. Gtkmm could still be built,
but one of the demo programs crashed when executed.
gtk/src/shortcutsshortcut.hg | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/gtk/src/shortcutsshortcut.hg b/gtk/src/shortcutsshortcut.hg
index 7d39ba9..d7e7195 100644
--- a/gtk/src/shortcutsshortcut.hg
+++ b/gtk/src/shortcutsshortcut.hg
@@ -14,12 +14,12 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <gtkmm/box.h>
+#include <gtkmm/widget.h>
#include <gtkmm/enums.h>
#include <giomm/icon.h>
_DEFS(gtkmm,gtk)
-_PINCLUDE(gtkmm/private/box_p.h)
+_PINCLUDE(gtkmm/private/widget_p.h)
namespace Gtk
{
@@ -27,16 +27,16 @@ _WRAP_ENUM(ShortcutType, GtkShortcutType)
/** Represents a keyboard shortcut in a ShortcutsWindow.
*
- * A ShortcutsShortcut represents a single keyboard shortcut or gesture
+ * A %ShortcutsShortcut represents a single keyboard shortcut or gesture
* with a short text. This widget is only meant to be used with ShortcutsWindow.
*
* @newin{3,20}
*
* @ingroup Widgets
*/
-class ShortcutsShortcut : public Box
+class ShortcutsShortcut : public Widget
{
- _CLASS_GTKOBJECT(ShortcutsShortcut, GtkShortcutsShortcut, GTK_SHORTCUTS_SHORTCUT, Box, GtkBox)
+ _CLASS_GTKOBJECT(ShortcutsShortcut, GtkShortcutsShortcut, GTK_SHORTCUTS_SHORTCUT, Widget, GtkWidget)
public:
_CTOR_DEFAULT
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]