The type docblock needs a Deprecated annotation.
*
* To obtain the application that has been selected in a `GtkAppChooser`,
* use [method@Gtk.AppChooser.get_app_info].
+ *
+ * Deprecated: 4.10: The application selection widgets should be
+ * implemented according to the design of each platform and/or
+ * application requiring them.
*/
#include "config.h"
* To track changes in the selected application, use the
* [signal@Gtk.AppChooserButton::changed] signal.
*
- * # CSS nodes
+ * ## CSS nodes
*
* `GtkAppChooserButton` has a single CSS node with the name “appchooserbutton”.
+ *
+ * Deprecated: 4.10: The application selection widgets should be
+ * implemented according to the design of each platform and/or
+ * application requiring them.
*/
#include "config.h"
*
* To set the heading that is shown above the `GtkAppChooserWidget`,
* use [method@Gtk.AppChooserDialog.set_heading].
+ *
+ * Deprecated: 4.10: The application selection widgets should be
+ * implemented according to the design of each platform and/or
+ * application requiring them.
*/
#include "config.h"
else if (self->content_type)
{
/* Translators: %s is a file type description */
- subtitle = g_strdup_printf (_("Opening “%s” files."),
+ subtitle = g_strdup_printf (_("Opening “%s” files."),
unknown ? self->content_type : description);
string = g_strdup_printf (_("No applications found for “%s” files"),
unknown ? self->content_type : description);
}
- g_object_get (self, "use-header-bar", &use_header, NULL);
+ g_object_get (self, "use-header-bar", &use_header, NULL);
if (use_header)
{
GtkWidget *box, *label;
gtk_app_chooser_dialog_dispose (GObject *object)
{
GtkAppChooserDialog *self = GTK_APP_CHOOSER_DIALOG (object);
-
+
g_clear_object (&self->gfile);
self->dismissed = TRUE;
* [signal@Gtk.AppChooserWidget::application-selected] and
* [signal@Gtk.AppChooserWidget::application-activated] signals.
*
- * # CSS nodes
+ * ## CSS nodes
*
* `GtkAppChooserWidget` has a single CSS node with name appchooser.
+ *
+ * Deprecated: 4.10: The application selection widgets should be
+ * implemented according to the design of each platform and/or
+ * application requiring them.
*/
typedef struct _GtkAppChooserWidgetClass GtkAppChooserWidgetClass;
retval = 1;
goto out;
}
-
+
/* the recommended one always wins */
if (a_recommended && !b_recommended)
{
retval = FALSE;
heading_added = FALSE;
bold_string = g_strdup_printf ("<b>%s</b>", heading_title);
-
+
for (l = applications; l != NULL; l = l->next)
{
app = l->data;