mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-11 13:10:07 +00:00
Deprecate GtkAssistant
It is a dialog-like toplevel, and libadwaita has replacement parts (like AdwCarousel).
This commit is contained in:
parent
1ff8dad8ec
commit
3858c5282c
@ -7,6 +7,8 @@
|
||||
|
||||
#include <gtk/gtk.h>
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
|
||||
static GtkWidget *progress_bar = NULL;
|
||||
|
||||
static gboolean
|
||||
|
@ -6,6 +6,8 @@
|
||||
|
||||
#include "demo_conf.h"
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
|
||||
static GtkWidget *main_window;
|
||||
static GFile *filename = NULL;
|
||||
static GtkPageSetup *page_setup = NULL;
|
||||
|
@ -88,6 +88,8 @@
|
||||
#include "gtkstack.h"
|
||||
#include "gtktypebuiltins.h"
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
|
||||
typedef struct _GtkAssistantPageClass GtkAssistantPageClass;
|
||||
|
||||
struct _GtkAssistantPage
|
@ -103,81 +103,81 @@ GDK_AVAILABLE_IN_ALL
|
||||
GType gtk_assistant_page_get_type (void) G_GNUC_CONST;
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GType gtk_assistant_get_type (void) G_GNUC_CONST;
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
GtkWidget *gtk_assistant_new (void);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_assistant_next_page (GtkAssistant *assistant);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_assistant_previous_page (GtkAssistant *assistant);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
int gtk_assistant_get_current_page (GtkAssistant *assistant);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_assistant_set_current_page (GtkAssistant *assistant,
|
||||
int page_num);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
int gtk_assistant_get_n_pages (GtkAssistant *assistant);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
GtkWidget *gtk_assistant_get_nth_page (GtkAssistant *assistant,
|
||||
int page_num);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
int gtk_assistant_prepend_page (GtkAssistant *assistant,
|
||||
GtkWidget *page);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
int gtk_assistant_append_page (GtkAssistant *assistant,
|
||||
GtkWidget *page);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
int gtk_assistant_insert_page (GtkAssistant *assistant,
|
||||
GtkWidget *page,
|
||||
int position);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_assistant_remove_page (GtkAssistant *assistant,
|
||||
int page_num);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_assistant_set_forward_page_func (GtkAssistant *assistant,
|
||||
GtkAssistantPageFunc page_func,
|
||||
gpointer data,
|
||||
GDestroyNotify destroy);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_assistant_set_page_type (GtkAssistant *assistant,
|
||||
GtkWidget *page,
|
||||
GtkAssistantPageType type);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
GtkAssistantPageType gtk_assistant_get_page_type (GtkAssistant *assistant,
|
||||
GtkWidget *page);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_assistant_set_page_title (GtkAssistant *assistant,
|
||||
GtkWidget *page,
|
||||
const char *title);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
const char * gtk_assistant_get_page_title (GtkAssistant *assistant,
|
||||
GtkWidget *page);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_assistant_set_page_complete (GtkAssistant *assistant,
|
||||
GtkWidget *page,
|
||||
gboolean complete);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
gboolean gtk_assistant_get_page_complete (GtkAssistant *assistant,
|
||||
GtkWidget *page);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_assistant_add_action_widget (GtkAssistant *assistant,
|
||||
GtkWidget *child);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_assistant_remove_action_widget (GtkAssistant *assistant,
|
||||
GtkWidget *child);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_assistant_update_buttons_state (GtkAssistant *assistant);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
void gtk_assistant_commit (GtkAssistant *assistant);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
GtkAssistantPage * gtk_assistant_get_page (GtkAssistant *assistant,
|
||||
GtkWidget *child);
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
GtkWidget * gtk_assistant_page_get_child (GtkAssistantPage *page);
|
||||
|
||||
GDK_AVAILABLE_IN_ALL
|
||||
GDK_DEPRECATED_IN_4_10
|
||||
GListModel * gtk_assistant_get_pages (GtkAssistant *assistant);
|
||||
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkAssistant, g_object_unref)
|
@ -3,6 +3,7 @@ gtk_deprecated_sources = [
|
||||
'deprecated/gtkappchooserbutton.c',
|
||||
'deprecated/gtkappchooserdialog.c',
|
||||
'deprecated/gtkappchooserwidget.c',
|
||||
'deprecated/gtkassistant.c',
|
||||
'deprecated/gtkcellarea.c',
|
||||
'deprecated/gtkcellareabox.c',
|
||||
'deprecated/gtkcellareacontext.c',
|
||||
@ -55,6 +56,7 @@ gtk_deprecated_headers = [
|
||||
'deprecated/gtkappchooserbutton.h',
|
||||
'deprecated/gtkappchooserdialog.h',
|
||||
'deprecated/gtkappchooserwidget.h',
|
||||
'deprecated/gtkassistant.h',
|
||||
'deprecated/gtkcellarea.h',
|
||||
'deprecated/gtkcellareabox.h',
|
||||
'deprecated/gtkcellareacontext.h',
|
||||
|
@ -46,7 +46,7 @@
|
||||
#include <gtk/gtkapplication.h>
|
||||
#include <gtk/gtkapplicationwindow.h>
|
||||
#include <gtk/gtkaspectframe.h>
|
||||
#include <gtk/gtkassistant.h>
|
||||
#include <gtk/deprecated/gtkassistant.h>
|
||||
#include <gtk/gtkatcontext.h>
|
||||
#include <gtk/gtkbinlayout.h>
|
||||
#include <gtk/gtkbitset.h>
|
||||
|
@ -163,7 +163,6 @@ gtk_public_sources = files([
|
||||
'gtkapplication.c',
|
||||
'gtkapplicationwindow.c',
|
||||
'gtkaspectframe.c',
|
||||
'gtkassistant.c',
|
||||
'gtkatcontext.c',
|
||||
'gtkbinlayout.c',
|
||||
'gtkbitset.c',
|
||||
@ -420,7 +419,6 @@ gtk_public_headers = files([
|
||||
'gtkapplication.h',
|
||||
'gtkapplicationwindow.h',
|
||||
'gtkaspectframe.h',
|
||||
'gtkassistant.h',
|
||||
'gtkatcontext.h',
|
||||
'gtkbinlayout.h',
|
||||
'gtkbitset.h',
|
||||
|
Loading…
Reference in New Issue
Block a user