mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-11 21:20:09 +00:00
Deprecate the app chooser widgets
These are a family of pretty specialized widgets, and are very rarely used. Instead of porting them away from GtkTreeView and GtkComboBox, deprecate them.
This commit is contained in:
parent
adfc29968a
commit
a527a4d82e
@ -123,8 +123,14 @@ do_pickers (GtkWidget *do_widget)
|
||||
gtk_widget_set_halign (label, GTK_ALIGN_START);
|
||||
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
|
||||
gtk_widget_set_hexpand (label, TRUE);
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
|
||||
picker = gtk_app_chooser_button_new ("x-scheme-handler/mailto");
|
||||
gtk_app_chooser_button_set_show_dialog_item (GTK_APP_CHOOSER_BUTTON (picker), TRUE);
|
||||
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
|
||||
gtk_grid_attach (GTK_GRID (table), label, 0, 3, 1, 1);
|
||||
gtk_grid_attach (GTK_GRID (table), picker, 1, 3, 1, 1);
|
||||
}
|
||||
|
@ -52,6 +52,8 @@
|
||||
|
||||
#include <glib.h>
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
|
||||
G_DEFINE_INTERFACE (GtkAppChooser, gtk_app_chooser, GTK_TYPE_WIDGET);
|
||||
|
||||
static void
|
||||
@ -82,6 +84,8 @@ gtk_app_chooser_default_init (GtkAppChooserIface *iface)
|
||||
* shows applications.
|
||||
*
|
||||
* Returns: the content type of @self. Free with g_free()
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
char *
|
||||
gtk_app_chooser_get_content_type (GtkAppChooser *self)
|
||||
@ -105,6 +109,8 @@ gtk_app_chooser_get_content_type (GtkAppChooser *self)
|
||||
*
|
||||
* Returns: (nullable) (transfer full): a `GAppInfo` for the
|
||||
* currently selected application
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
GAppInfo *
|
||||
gtk_app_chooser_get_app_info (GtkAppChooser *self)
|
||||
@ -117,6 +123,8 @@ gtk_app_chooser_get_app_info (GtkAppChooser *self)
|
||||
* @self: a `GtkAppChooser`
|
||||
*
|
||||
* Reloads the list of applications.
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
void
|
||||
gtk_app_chooser_refresh (GtkAppChooser *self)
|
@ -41,11 +41,11 @@ typedef struct _GtkAppChooser GtkAppChooser;
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GType gtk_app_chooser_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
GAppInfo * gtk_app_chooser_get_app_info (GtkAppChooser *self);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
char * gtk_app_chooser_get_content_type (GtkAppChooser *self);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_app_chooser_refresh (GtkAppChooser *self);
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkAppChooser, g_object_unref)
|
@ -67,6 +67,8 @@
|
||||
#include "gtkliststore.h"
|
||||
#include "gtkprivate.h"
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
|
||||
enum {
|
||||
PROP_SHOW_DIALOG_ITEM = 1,
|
||||
PROP_SHOW_DEFAULT_ITEM,
|
||||
@ -883,6 +885,8 @@ real_insert_separator (GtkAppChooserButton *self,
|
||||
* that can handle content of the given type.
|
||||
*
|
||||
* Returns: a newly created `GtkAppChooserButton`
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
GtkWidget *
|
||||
gtk_app_chooser_button_new (const char *content_type)
|
||||
@ -900,6 +904,8 @@ gtk_app_chooser_button_new (const char *content_type)
|
||||
*
|
||||
* Appends a separator to the list of applications that is shown
|
||||
* in the popup.
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
void
|
||||
gtk_app_chooser_button_append_separator (GtkAppChooserButton *self)
|
||||
@ -928,6 +934,8 @@ gtk_app_chooser_button_append_separator (GtkAppChooserButton *self)
|
||||
* callback for the activation of a particular custom item in the list.
|
||||
*
|
||||
* See also [method@Gtk.AppChooserButton.append_separator].
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
void
|
||||
gtk_app_chooser_button_append_custom_item (GtkAppChooserButton *self,
|
||||
@ -955,6 +963,8 @@ gtk_app_chooser_button_append_custom_item (GtkAppChooserButton *self,
|
||||
*
|
||||
* Use [method@Gtk.AppChooser.refresh] to bring the selection
|
||||
* to its initial state.
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
void
|
||||
gtk_app_chooser_button_set_active_custom_item (GtkAppChooserButton *self,
|
||||
@ -983,6 +993,8 @@ gtk_app_chooser_button_set_active_custom_item (GtkAppChooserButton *self,
|
||||
* for a `GtkAppChooserDialog`.
|
||||
*
|
||||
* Returns: the value of [property@Gtk.AppChooserButton:show-dialog-item]
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
gboolean
|
||||
gtk_app_chooser_button_get_show_dialog_item (GtkAppChooserButton *self)
|
||||
@ -999,6 +1011,8 @@ gtk_app_chooser_button_get_show_dialog_item (GtkAppChooserButton *self)
|
||||
*
|
||||
* Sets whether the dropdown menu of this button should show an
|
||||
* entry to trigger a `GtkAppChooserDialog`.
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
void
|
||||
gtk_app_chooser_button_set_show_dialog_item (GtkAppChooserButton *self,
|
||||
@ -1022,6 +1036,8 @@ gtk_app_chooser_button_set_show_dialog_item (GtkAppChooserButton *self,
|
||||
* application at the top.
|
||||
*
|
||||
* Returns: the value of [property@Gtk.AppChooserButton:show-default-item]
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
gboolean
|
||||
gtk_app_chooser_button_get_show_default_item (GtkAppChooserButton *self)
|
||||
@ -1038,6 +1054,8 @@ gtk_app_chooser_button_get_show_default_item (GtkAppChooserButton *self)
|
||||
*
|
||||
* Sets whether the dropdown menu of this button should show the
|
||||
* default application for the given content type at top.
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
void
|
||||
gtk_app_chooser_button_set_show_default_item (GtkAppChooserButton *self,
|
||||
@ -1063,6 +1081,8 @@ gtk_app_chooser_button_set_show_default_item (GtkAppChooserButton *self,
|
||||
* Sets the text to display at the top of the dialog.
|
||||
*
|
||||
* If the heading is not set, the dialog displays a default text.
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
void
|
||||
gtk_app_chooser_button_set_heading (GtkAppChooserButton *self,
|
||||
@ -1084,6 +1104,8 @@ gtk_app_chooser_button_set_heading (GtkAppChooserButton *self,
|
||||
*
|
||||
* Returns: (nullable): the text to display at the top of the dialog,
|
||||
* or %NULL, in which case a default text is displayed
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
const char *
|
||||
gtk_app_chooser_button_get_heading (GtkAppChooserButton *self)
|
||||
@ -1099,6 +1121,8 @@ gtk_app_chooser_button_get_heading (GtkAppChooserButton *self)
|
||||
* @modal: %TRUE to make the dialog modal
|
||||
*
|
||||
* Sets whether the dialog should be modal.
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
void
|
||||
gtk_app_chooser_button_set_modal (GtkAppChooserButton *self,
|
||||
@ -1121,6 +1145,8 @@ gtk_app_chooser_button_set_modal (GtkAppChooserButton *self,
|
||||
* Gets whether the dialog is modal.
|
||||
*
|
||||
* Returns: %TRUE if the dialog is modal
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
gboolean
|
||||
gtk_app_chooser_button_get_modal (GtkAppChooserButton *self)
|
@ -40,40 +40,40 @@ typedef struct _GtkAppChooserButton GtkAppChooserButton;
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GType gtk_app_chooser_button_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
GtkWidget * gtk_app_chooser_button_new (const char *content_type);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_app_chooser_button_append_separator (GtkAppChooserButton *self);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_app_chooser_button_append_custom_item (GtkAppChooserButton *self,
|
||||
const char *name,
|
||||
const char *label,
|
||||
GIcon *icon);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_app_chooser_button_set_active_custom_item (GtkAppChooserButton *self,
|
||||
const char *name);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_app_chooser_button_set_show_dialog_item (GtkAppChooserButton *self,
|
||||
gboolean setting);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
gboolean gtk_app_chooser_button_get_show_dialog_item (GtkAppChooserButton *self);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_app_chooser_button_set_heading (GtkAppChooserButton *self,
|
||||
const char *heading);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
const char *
|
||||
gtk_app_chooser_button_get_heading (GtkAppChooserButton *self);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_app_chooser_button_set_show_default_item (GtkAppChooserButton *self,
|
||||
gboolean setting);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
gboolean gtk_app_chooser_button_get_show_default_item (GtkAppChooserButton *self);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
gboolean gtk_app_chooser_button_get_modal (GtkAppChooserButton *self);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_app_chooser_button_set_modal (GtkAppChooserButton *self,
|
||||
gboolean modal);
|
||||
|
@ -61,6 +61,8 @@
|
||||
#include <glib/gi18n-lib.h>
|
||||
#include <gio/gio.h>
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
|
||||
typedef struct _GtkAppChooserDialogClass GtkAppChooserDialogClass;
|
||||
|
||||
struct _GtkAppChooserDialog {
|
||||
@ -670,6 +672,8 @@ set_parent_and_flags (GtkWidget *dialog,
|
||||
* The dialog will show applications that can open the file.
|
||||
*
|
||||
* Returns: a newly created `GtkAppChooserDialog`
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
GtkWidget *
|
||||
gtk_app_chooser_dialog_new (GtkWindow *parent,
|
||||
@ -700,6 +704,8 @@ gtk_app_chooser_dialog_new (GtkWindow *parent,
|
||||
* The dialog will show applications that can open the content type.
|
||||
*
|
||||
* Returns: a newly created `GtkAppChooserDialog`
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
GtkWidget *
|
||||
gtk_app_chooser_dialog_new_for_content_type (GtkWindow *parent,
|
||||
@ -726,6 +732,8 @@ gtk_app_chooser_dialog_new_for_content_type (GtkWindow *parent,
|
||||
* Returns the `GtkAppChooserWidget` of this dialog.
|
||||
*
|
||||
* Returns: (transfer none): the `GtkAppChooserWidget` of @self
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
GtkWidget *
|
||||
gtk_app_chooser_dialog_get_widget (GtkAppChooserDialog *self)
|
||||
@ -743,6 +751,8 @@ gtk_app_chooser_dialog_get_widget (GtkAppChooserDialog *self)
|
||||
* Sets the text to display at the top of the dialog.
|
||||
*
|
||||
* If the heading is not set, the dialog displays a default text.
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
void
|
||||
gtk_app_chooser_dialog_set_heading (GtkAppChooserDialog *self,
|
||||
@ -777,6 +787,8 @@ gtk_app_chooser_dialog_set_heading (GtkAppChooserDialog *self,
|
||||
*
|
||||
* Returns: (nullable): the text to display at the top of the dialog,
|
||||
* or %NULL, in which case a default text is displayed
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
const char *
|
||||
gtk_app_chooser_dialog_get_heading (GtkAppChooserDialog *self)
|
@ -43,21 +43,21 @@ typedef struct _GtkAppChooserDialog GtkAppChooserDialog;
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GType gtk_app_chooser_dialog_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
GtkWidget * gtk_app_chooser_dialog_new (GtkWindow *parent,
|
||||
GtkDialogFlags flags,
|
||||
GFile *file);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
GtkWidget * gtk_app_chooser_dialog_new_for_content_type (GtkWindow *parent,
|
||||
GtkDialogFlags flags,
|
||||
const char *content_type);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
GtkWidget * gtk_app_chooser_dialog_get_widget (GtkAppChooserDialog *self);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_app_chooser_dialog_set_heading (GtkAppChooserDialog *self,
|
||||
const char *heading);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
const char * gtk_app_chooser_dialog_get_heading (GtkAppChooserDialog *self);
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkAppChooserDialog, g_object_unref)
|
@ -44,6 +44,8 @@
|
||||
#include <glib/gi18n-lib.h>
|
||||
#include <gio/gio.h>
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
|
||||
/**
|
||||
* GtkAppChooserWidget:
|
||||
*
|
||||
@ -1112,6 +1114,8 @@ gtk_app_chooser_widget_iface_init (GtkAppChooserIface *iface)
|
||||
* that can handle content of the given type.
|
||||
*
|
||||
* Returns: a newly created `GtkAppChooserWidget`
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
GtkWidget *
|
||||
gtk_app_chooser_widget_new (const char *content_type)
|
||||
@ -1128,6 +1132,8 @@ gtk_app_chooser_widget_new (const char *content_type)
|
||||
*
|
||||
* Sets whether the app chooser should show the default handler
|
||||
* for the content type in a separate section.
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
void
|
||||
gtk_app_chooser_widget_set_show_default (GtkAppChooserWidget *self,
|
||||
@ -1153,6 +1159,8 @@ gtk_app_chooser_widget_set_show_default (GtkAppChooserWidget *self,
|
||||
* for the content type in a separate section.
|
||||
*
|
||||
* Returns: the value of [property@Gtk.AppChooserWidget:show-default]
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
gboolean
|
||||
gtk_app_chooser_widget_get_show_default (GtkAppChooserWidget *self)
|
||||
@ -1169,6 +1177,8 @@ gtk_app_chooser_widget_get_show_default (GtkAppChooserWidget *self)
|
||||
*
|
||||
* Sets whether the app chooser should show recommended applications
|
||||
* for the content type in a separate section.
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
void
|
||||
gtk_app_chooser_widget_set_show_recommended (GtkAppChooserWidget *self,
|
||||
@ -1194,6 +1204,8 @@ gtk_app_chooser_widget_set_show_recommended (GtkAppChooserWidget *self,
|
||||
* for the content type in a separate section.
|
||||
*
|
||||
* Returns: the value of [property@Gtk.AppChooserWidget:show-recommended]
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
gboolean
|
||||
gtk_app_chooser_widget_get_show_recommended (GtkAppChooserWidget *self)
|
||||
@ -1210,6 +1222,8 @@ gtk_app_chooser_widget_get_show_recommended (GtkAppChooserWidget *self)
|
||||
*
|
||||
* Sets whether the app chooser should show related applications
|
||||
* for the content type in a separate section.
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
void
|
||||
gtk_app_chooser_widget_set_show_fallback (GtkAppChooserWidget *self,
|
||||
@ -1235,6 +1249,8 @@ gtk_app_chooser_widget_set_show_fallback (GtkAppChooserWidget *self,
|
||||
* for the content type in a separate section.
|
||||
*
|
||||
* Returns: the value of [property@Gtk.AppChooserWidget:show-fallback]
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
gboolean
|
||||
gtk_app_chooser_widget_get_show_fallback (GtkAppChooserWidget *self)
|
||||
@ -1251,6 +1267,8 @@ gtk_app_chooser_widget_get_show_fallback (GtkAppChooserWidget *self)
|
||||
*
|
||||
* Sets whether the app chooser should show applications
|
||||
* which are unrelated to the content type.
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
void
|
||||
gtk_app_chooser_widget_set_show_other (GtkAppChooserWidget *self,
|
||||
@ -1276,6 +1294,8 @@ gtk_app_chooser_widget_set_show_other (GtkAppChooserWidget *self,
|
||||
* which are unrelated to the content type.
|
||||
*
|
||||
* Returns: the value of [property@Gtk.AppChooserWidget:show-other]
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
gboolean
|
||||
gtk_app_chooser_widget_get_show_other (GtkAppChooserWidget *self)
|
||||
@ -1292,6 +1312,8 @@ gtk_app_chooser_widget_get_show_other (GtkAppChooserWidget *self)
|
||||
*
|
||||
* Sets whether the app chooser should show all applications
|
||||
* in a flat list.
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
void
|
||||
gtk_app_chooser_widget_set_show_all (GtkAppChooserWidget *self,
|
||||
@ -1317,6 +1339,8 @@ gtk_app_chooser_widget_set_show_all (GtkAppChooserWidget *self,
|
||||
* in a flat list.
|
||||
*
|
||||
* Returns: the value of [property@Gtk.AppChooserWidget:show-all]
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
gboolean
|
||||
gtk_app_chooser_widget_get_show_all (GtkAppChooserWidget *self)
|
||||
@ -1333,6 +1357,8 @@ gtk_app_chooser_widget_get_show_all (GtkAppChooserWidget *self)
|
||||
*
|
||||
* Sets the text that is shown if there are not applications
|
||||
* that can handle the content type.
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
void
|
||||
gtk_app_chooser_widget_set_default_text (GtkAppChooserWidget *self,
|
||||
@ -1359,6 +1385,8 @@ gtk_app_chooser_widget_set_default_text (GtkAppChooserWidget *self,
|
||||
* that can handle the content type.
|
||||
*
|
||||
* Returns: (nullable): the value of [property@Gtk.AppChooserWidget:default-text]
|
||||
*
|
||||
* Deprecated: 4.10: This widget will be removed in GTK 5
|
||||
*/
|
||||
const char *
|
||||
gtk_app_chooser_widget_get_default_text (GtkAppChooserWidget *self)
|
@ -43,43 +43,43 @@ typedef struct _GtkAppChooserWidget GtkAppChooserWidget;
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GType gtk_app_chooser_widget_get_type (void) G_GNUC_CONST;
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
GtkWidget * gtk_app_chooser_widget_new (const char *content_type);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_app_chooser_widget_set_show_default (GtkAppChooserWidget *self,
|
||||
gboolean setting);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
gboolean gtk_app_chooser_widget_get_show_default (GtkAppChooserWidget *self);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_app_chooser_widget_set_show_recommended (GtkAppChooserWidget *self,
|
||||
gboolean setting);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
gboolean gtk_app_chooser_widget_get_show_recommended (GtkAppChooserWidget *self);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_app_chooser_widget_set_show_fallback (GtkAppChooserWidget *self,
|
||||
gboolean setting);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
gboolean gtk_app_chooser_widget_get_show_fallback (GtkAppChooserWidget *self);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_app_chooser_widget_set_show_other (GtkAppChooserWidget *self,
|
||||
gboolean setting);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
gboolean gtk_app_chooser_widget_get_show_other (GtkAppChooserWidget *self);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_app_chooser_widget_set_show_all (GtkAppChooserWidget *self,
|
||||
gboolean setting);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
gboolean gtk_app_chooser_widget_get_show_all (GtkAppChooserWidget *self);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_app_chooser_widget_set_default_text (GtkAppChooserWidget *self,
|
||||
const char *text);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
const char * gtk_app_chooser_widget_get_default_text (GtkAppChooserWidget *self);
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkAppChooserWidget, g_object_unref)
|
@ -1,5 +1,13 @@
|
||||
gtk_deprecated_sources = files([])
|
||||
gtk_deprecated_sources = [
|
||||
'deprecated/gtkappchooser.c',
|
||||
'deprecated/gtkappchooserbutton.c',
|
||||
'deprecated/gtkappchooserdialog.c',
|
||||
'deprecated/gtkappchooserwidget.c',
|
||||
]
|
||||
|
||||
gtk_deprecated_headers = files([])
|
||||
|
||||
install_headers(gtk_deprecated_headers, subdir: 'gtk-4.0/gtk/deprecated/')
|
||||
gtk_deprecated_headers = [
|
||||
'deprecated/gtkappchooser.h',
|
||||
'deprecated/gtkappchooserbutton.h',
|
||||
'deprecated/gtkappchooserdialog.h',
|
||||
'deprecated/gtkappchooserwidget.h',
|
||||
]
|
||||
|
@ -37,10 +37,10 @@
|
||||
#include <gtk/gtkactionable.h>
|
||||
#include <gtk/gtkactionbar.h>
|
||||
#include <gtk/gtkadjustment.h>
|
||||
#include <gtk/gtkappchooser.h>
|
||||
#include <gtk/gtkappchooserdialog.h>
|
||||
#include <gtk/gtkappchooserwidget.h>
|
||||
#include <gtk/gtkappchooserbutton.h>
|
||||
#include <gtk/deprecated/gtkappchooser.h>
|
||||
#include <gtk/deprecated/gtkappchooserdialog.h>
|
||||
#include <gtk/deprecated/gtkappchooserwidget.h>
|
||||
#include <gtk/deprecated/gtkappchooserbutton.h>
|
||||
#include <gtk/gtkapplication.h>
|
||||
#include <gtk/gtkapplicationwindow.h>
|
||||
#include <gtk/gtkaspectframe.h>
|
||||
|
@ -159,10 +159,6 @@ gtk_public_sources = files([
|
||||
'gtkactionable.c',
|
||||
'gtkactionbar.c',
|
||||
'gtkadjustment.c',
|
||||
'gtkappchooser.c',
|
||||
'gtkappchooserbutton.c',
|
||||
'gtkappchooserdialog.c',
|
||||
'gtkappchooserwidget.c',
|
||||
'gtkapplication.c',
|
||||
'gtkapplicationwindow.c',
|
||||
'gtkaspectframe.c',
|
||||
@ -451,10 +447,6 @@ gtk_public_headers = files([
|
||||
'gtkactionable.h',
|
||||
'gtkactionbar.h',
|
||||
'gtkadjustment.h',
|
||||
'gtkappchooser.h',
|
||||
'gtkappchooserbutton.h',
|
||||
'gtkappchooserdialog.h',
|
||||
'gtkappchooserwidget.h',
|
||||
'gtkapplication.h',
|
||||
'gtkapplicationwindow.h',
|
||||
'gtkaspectframe.h',
|
||||
@ -704,6 +696,7 @@ gtk_public_headers = files([
|
||||
])
|
||||
|
||||
install_headers(gtk_public_headers, subdir: 'gtk-4.0/gtk/')
|
||||
install_headers(gtk_deprecated_headers, subdir: 'gtk-4.0/gtk/deprecated')
|
||||
|
||||
gtk_sources = gtk_public_sources + gtk_private_sources
|
||||
|
||||
|
@ -21,6 +21,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
|
||||
static GtkWidget *toplevel;
|
||||
static GFile *file;
|
||||
static GtkWidget *grid, *file_l, *open;
|
||||
|
@ -21,6 +21,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
|
||||
#define CUSTOM_ITEM "custom-item"
|
||||
|
||||
static GtkWidget *toplevel, *button, *box;
|
||||
|
@ -198,6 +198,8 @@ test_action_bar_basic (void)
|
||||
g_object_unref (g_object_ref_sink (widget));
|
||||
}
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
|
||||
static void
|
||||
test_app_chooser_widget_basic (void)
|
||||
{
|
||||
@ -227,6 +229,8 @@ test_app_chooser_dialog_basic (void)
|
||||
gtk_window_destroy (GTK_WINDOW (widget));
|
||||
}
|
||||
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
|
||||
static void
|
||||
test_color_chooser_dialog_basic (void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user