From 5c66f2ec196bb1e4f77e036a6764221fc12e6147 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Tue, 27 Mar 2018 11:04:23 +0200 Subject: [PATCH] accellabel: Stop saying it's a GtkLabel And clean up the includes accordingly. --- gtk/gtkaccellabel.c | 5 +++-- gtk/gtkaccellabel.h | 3 +-- gtk/gtkmenuitem.c | 1 + gtk/gtkmodelmenuitem.c | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gtk/gtkaccellabel.c b/gtk/gtkaccellabel.c index eb6956ea46..41c73a6f3a 100644 --- a/gtk/gtkaccellabel.c +++ b/gtk/gtkaccellabel.c @@ -28,6 +28,7 @@ #include "config.h" #include +#include "gtklabel.h" #include "gtkaccellabel.h" #include "gtkaccelmap.h" #include "gtkintl.h" @@ -47,8 +48,8 @@ * @Title: GtkAccelLabel * @See_also: #GtkAccelGroup * - * The #GtkAccelLabel widget is a subclass of #GtkLabel that also displays an - * accelerator key on the right of the label text, e.g. “Ctrl+S”. + * The #GtkAccelLabel is a widget that shows an accelerator next to a description + * of said accelerator, e.g. “Save Document Ctrl+S”. * It is commonly used in menus to show the keyboard short-cuts for commands. * * The accelerator key to display is typically not set explicitly (although it diff --git a/gtk/gtkaccellabel.h b/gtk/gtkaccellabel.h index 1c5b6c6f6f..4c5a2cbf3c 100644 --- a/gtk/gtkaccellabel.h +++ b/gtk/gtkaccellabel.h @@ -1,7 +1,6 @@ /* GTK - The GIMP Toolkit * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald * - * GtkAccelLabel: GtkLabel with accelerator monitoring facilities. * Copyright (C) 1998 Tim Janik * * This library is free software; you can redistribute it and/or @@ -32,7 +31,7 @@ #error "Only can be included directly." #endif -#include +#include G_BEGIN_DECLS diff --git a/gtk/gtkmenuitem.c b/gtk/gtkmenuitem.c index 6df94a0dca..a9b4c56812 100644 --- a/gtk/gtkmenuitem.c +++ b/gtk/gtkmenuitem.c @@ -27,6 +27,7 @@ #include #include "gtkaccellabel.h" +#include "gtklabel.h" #include "gtkcontainerprivate.h" #include "gtkmain.h" #include "gtkmarshalers.h" diff --git a/gtk/gtkmodelmenuitem.c b/gtk/gtkmodelmenuitem.c index 88a0ad08fd..ffa8ad9635 100644 --- a/gtk/gtkmodelmenuitem.c +++ b/gtk/gtkmodelmenuitem.c @@ -22,6 +22,7 @@ #include "gtkmodelmenuitem.h" #include "gtkaccellabel.h" +#include "gtklabel.h" #include "gtkcheckmenuitemprivate.h" #include "gtkimage.h" #include "gtkbox.h" -- 2.30.2