Deprecate GtkArrow

https://bugzilla.gnome.org/show_bug.cgi?id=729564
This commit is contained in:
Matthias Clasen 2014-05-13 00:03:34 -04:00
parent 219f96b8a3
commit a600718846
5 changed files with 16 additions and 7 deletions

View File

@ -240,7 +240,6 @@
<chapter id="MiscObjects"> <chapter id="MiscObjects">
<title>Miscellaneous</title> <title>Miscellaneous</title>
<xi:include href="xml/gtkadjustment.xml" /> <xi:include href="xml/gtkadjustment.xml" />
<xi:include href="xml/gtkarrow.xml" />
<xi:include href="xml/gtkcalendar.xml" /> <xi:include href="xml/gtkcalendar.xml" />
<xi:include href="xml/gtkdrawingarea.xml" /> <xi:include href="xml/gtkdrawingarea.xml" />
<xi:include href="xml/gtkeventbox.xml" /> <xi:include href="xml/gtkeventbox.xml" />
@ -324,6 +323,7 @@
<xi:include href="xml/gtkstock.xml" /> <xi:include href="xml/gtkstock.xml" />
<xi:include href="xml/gtkiconfactory.xml" /> <xi:include href="xml/gtkiconfactory.xml" />
<xi:include href="xml/gtknumerableicon.xml" /> <xi:include href="xml/gtknumerableicon.xml" />
<xi:include href="xml/gtkarrow.xml" />
</chapter> </chapter>
</part> </part>

View File

@ -157,6 +157,7 @@ deprecated_h_sources = \
deprecated/gtkactivatable.h \ deprecated/gtkactivatable.h \
deprecated/gtkaction.h \ deprecated/gtkaction.h \
deprecated/gtkactiongroup.h \ deprecated/gtkactiongroup.h \
deprecated/gtkarrow.h \
deprecated/gtkcolorsel.h \ deprecated/gtkcolorsel.h \
deprecated/gtkcolorseldialog.h \ deprecated/gtkcolorseldialog.h \
deprecated/gtkfontsel.h \ deprecated/gtkfontsel.h \
@ -214,7 +215,6 @@ gtk_public_h_sources = \
gtkappchooserwidget.h \ gtkappchooserwidget.h \
gtkapplication.h \ gtkapplication.h \
gtkapplicationwindow.h \ gtkapplicationwindow.h \
gtkarrow.h \
gtkaspectframe.h \ gtkaspectframe.h \
gtkassistant.h \ gtkassistant.h \
gtkbbox.h \ gtkbbox.h \
@ -584,6 +584,7 @@ deprecated_c_sources = \
deprecated/gtkactivatable.c \ deprecated/gtkactivatable.c \
deprecated/gtkaction.c \ deprecated/gtkaction.c \
deprecated/gtkactiongroup.c \ deprecated/gtkactiongroup.c \
deprecated/gtkarrow.c \
deprecated/gtkcolorsel.c \ deprecated/gtkcolorsel.c \
deprecated/gtkcolorseldialog.c \ deprecated/gtkcolorseldialog.c \
deprecated/gtkfontsel.c \ deprecated/gtkfontsel.c \
@ -646,7 +647,6 @@ gtk_base_c_sources = \
gtkapplication.c \ gtkapplication.c \
gtkapplicationimpl.c \ gtkapplicationimpl.c \
gtkapplicationwindow.c \ gtkapplicationwindow.c \
gtkarrow.c \
gtkaspectframe.c \ gtkaspectframe.c \
gtkassistant.c \ gtkassistant.c \
gtkbbox.c \ gtkbbox.c \

View File

@ -40,6 +40,9 @@
* *
* Arrows are created with a call to gtk_arrow_new(). The direction or * Arrows are created with a call to gtk_arrow_new(). The direction or
* style of an arrow can be changed after creation by using gtk_arrow_set(). * style of an arrow can be changed after creation by using gtk_arrow_set().
*
* GtkArrow has been deprecated; you can simply use a #GtkImage with a
* suitable icon name, such as pan-down-symbolic.
*/ */
#include "config.h" #include "config.h"
@ -52,6 +55,8 @@
#include "a11y/gtkarrowaccessible.h" #include "a11y/gtkarrowaccessible.h"
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
#define MIN_ARROW_SIZE 15 #define MIN_ARROW_SIZE 15
struct _GtkArrowPrivate struct _GtkArrowPrivate
@ -232,6 +237,8 @@ G_GNUC_END_IGNORE_DEPRECATIONS
* Creates a new #GtkArrow widget. * Creates a new #GtkArrow widget.
* *
* Returns: the new #GtkArrow widget. * Returns: the new #GtkArrow widget.
*
* Deprecated: 3.14: Use a #GtkImage with a suitable icon.
*/ */
GtkWidget* GtkWidget*
gtk_arrow_new (GtkArrowType arrow_type, gtk_arrow_new (GtkArrowType arrow_type,
@ -257,6 +264,8 @@ gtk_arrow_new (GtkArrowType arrow_type,
* @shadow_type: a valid #GtkShadowType. * @shadow_type: a valid #GtkShadowType.
* *
* Sets the direction and style of the #GtkArrow, @arrow. * Sets the direction and style of the #GtkArrow, @arrow.
*
* Deprecated: 3.14: Use a #GtkImage with a suitable icon.
*/ */
void void
gtk_arrow_set (GtkArrow *arrow, gtk_arrow_set (GtkArrow *arrow,

View File

@ -67,12 +67,12 @@ struct _GtkArrowClass
}; };
GDK_AVAILABLE_IN_ALL GDK_DEPRECATED_IN_3_14
GType gtk_arrow_get_type (void) G_GNUC_CONST; GType gtk_arrow_get_type (void) G_GNUC_CONST;
GDK_AVAILABLE_IN_ALL GDK_DEPRECATED_IN_3_14
GtkWidget* gtk_arrow_new (GtkArrowType arrow_type, GtkWidget* gtk_arrow_new (GtkArrowType arrow_type,
GtkShadowType shadow_type); GtkShadowType shadow_type);
GDK_AVAILABLE_IN_ALL GDK_DEPRECATED_IN_3_14
void gtk_arrow_set (GtkArrow *arrow, void gtk_arrow_set (GtkArrow *arrow,
GtkArrowType arrow_type, GtkArrowType arrow_type,
GtkShadowType shadow_type); GtkShadowType shadow_type);

View File

@ -43,7 +43,6 @@
#include <gtk/gtkappchooserbutton.h> #include <gtk/gtkappchooserbutton.h>
#include <gtk/gtkapplication.h> #include <gtk/gtkapplication.h>
#include <gtk/gtkapplicationwindow.h> #include <gtk/gtkapplicationwindow.h>
#include <gtk/gtkarrow.h>
#include <gtk/gtkaspectframe.h> #include <gtk/gtkaspectframe.h>
#include <gtk/gtkassistant.h> #include <gtk/gtkassistant.h>
#include <gtk/gtkbbox.h> #include <gtk/gtkbbox.h>
@ -223,6 +222,7 @@
#include <gtk/gtkwindow.h> #include <gtk/gtkwindow.h>
#ifndef GTK_DISABLE_DEPRECATED #ifndef GTK_DISABLE_DEPRECATED
#include <gtk/deprecated/gtkarrow.h>
#include <gtk/deprecated/gtkactivatable.h> #include <gtk/deprecated/gtkactivatable.h>
#include <gtk/deprecated/gtkaction.h> #include <gtk/deprecated/gtkaction.h>
#include <gtk/deprecated/gtkactiongroup.h> #include <gtk/deprecated/gtkactiongroup.h>