mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-09 10:20:07 +00:00
tests: Ignore deprecations
Eventually, most of these tests should be dropped.
This commit is contained in:
parent
c32fed9238
commit
69e4c9b01e
@ -18,6 +18,8 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
get_content (void)
|
get_content (void)
|
||||||
{
|
{
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <gdk/gdkkeysyms.h>
|
#include <gdk/gdkkeysyms.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
static void
|
static void
|
||||||
accel_edited_callback (GtkCellRendererText *cell,
|
accel_edited_callback (GtkCellRendererText *cell,
|
||||||
const char *path_string,
|
const char *path_string,
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
static const char *baseline_pos_str[] = {
|
static const char *baseline_pos_str[] = {
|
||||||
"BASELINE_POSITION_TOP",
|
"BASELINE_POSITION_TOP",
|
||||||
"BASELINE_POSITION_CENTER",
|
"BASELINE_POSITION_CENTER",
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
/*******************************************************
|
/*******************************************************
|
||||||
* Simple Test *
|
* Simple Test *
|
||||||
*******************************************************/
|
*******************************************************/
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
#define COL_BACKGROUND 15
|
#define COL_BACKGROUND 15
|
||||||
#define COL_LINE_NUM 16
|
#define COL_LINE_NUM 16
|
||||||
#define NUM_COLS 17 /* change this when adding columns */
|
#define NUM_COLS 17 /* change this when adding columns */
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* oh yes, this test app surely has a lot of ugly code
|
* oh yes, this test app surely has a lot of ugly code
|
||||||
*/
|
*/
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
GtkWidget *text_view;
|
GtkWidget *text_view;
|
||||||
GtkListStore *model;
|
GtkListStore *model;
|
||||||
GArray *contents;
|
GArray *contents;
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
static void
|
static void
|
||||||
combo_changed_cb (GtkWidget *combo,
|
combo_changed_cb (GtkWidget *combo,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
|
@ -17,6 +17,8 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
SIMPLE_ITEMS = 0,
|
SIMPLE_ITEMS = 0,
|
||||||
FOCUS_ITEMS,
|
FOCUS_ITEMS,
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
static GtkWidget *antialias;
|
static GtkWidget *antialias;
|
||||||
static GtkWidget *subpixel;
|
static GtkWidget *subpixel;
|
||||||
static GtkWidget *hintstyle;
|
static GtkWidget *hintstyle;
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
#include <gio/gio.h>
|
#include <gio/gio.h>
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
/* TODO
|
/* TODO
|
||||||
*
|
*
|
||||||
* - Labeled sections
|
* - Labeled sections
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
static GtkTreeModel *
|
static GtkTreeModel *
|
||||||
create_model (void)
|
create_model (void)
|
||||||
|
@ -49,6 +49,8 @@
|
|||||||
|
|
||||||
#include "test.xpm"
|
#include "test.xpm"
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
static gboolean done = FALSE;
|
static gboolean done = FALSE;
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
static GtkTreeModel *
|
static GtkTreeModel *
|
||||||
get_model (void)
|
get_model (void)
|
||||||
{
|
{
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
#define NUMBER_OF_ITEMS 10
|
#define NUMBER_OF_ITEMS 10
|
||||||
#define SOME_ITEMS 100
|
#define SOME_ITEMS 100
|
||||||
#define MANY_ITEMS 10000
|
#define MANY_ITEMS 10000
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
RESPONSE_UNREVEAL,
|
RESPONSE_UNREVEAL,
|
||||||
} Response;
|
} Response;
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
static void
|
static void
|
||||||
on_button_clicked (GtkWidget *widget, gpointer data)
|
on_button_clicked (GtkWidget *widget, gpointer data)
|
||||||
{
|
{
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
typedef struct _Row Row;
|
typedef struct _Row Row;
|
||||||
typedef struct _RowClass RowClass;
|
typedef struct _RowClass RowClass;
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
static GdkContentProvider *
|
static GdkContentProvider *
|
||||||
prepare (GtkDragSource *source,
|
prepare (GtkDragSource *source,
|
||||||
double x,
|
double x,
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
#define INITIAL_HALIGN GTK_ALIGN_START
|
#define INITIAL_HALIGN GTK_ALIGN_START
|
||||||
#define INITIAL_VALIGN GTK_ALIGN_START
|
#define INITIAL_VALIGN GTK_ALIGN_START
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
static void
|
static void
|
||||||
activate (GSimpleAction *action,
|
activate (GSimpleAction *action,
|
||||||
GVariant *parameter,
|
GVariant *parameter,
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
static void
|
static void
|
||||||
horizontal_policy_changed (GtkComboBox *combo_box,
|
horizontal_policy_changed (GtkComboBox *combo_box,
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
GtkWidget *stack;
|
GtkWidget *stack;
|
||||||
GtkWidget *switcher;
|
GtkWidget *switcher;
|
||||||
GtkWidget *sidebar;
|
GtkWidget *sidebar;
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
typedef struct _MyTooltip MyTooltip;
|
typedef struct _MyTooltip MyTooltip;
|
||||||
typedef struct _MyTooltipClass MyTooltipClass;
|
typedef struct _MyTooltipClass MyTooltipClass;
|
||||||
|
|
||||||
|
@ -18,6 +18,8 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
#define MIN_ROWS 50
|
#define MIN_ROWS 50
|
||||||
#define MAX_ROWS 150
|
#define MAX_ROWS 150
|
||||||
|
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* README README README README README README README README README README
|
* README README README README README README README README README README
|
||||||
* README README README README README README README README README README
|
* README README README README README README README README README README
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
#define NO_EXPAND "No expandable columns"
|
#define NO_EXPAND "No expandable columns"
|
||||||
#define SINGLE_EXPAND "One expandable column"
|
#define SINGLE_EXPAND "One expandable column"
|
||||||
#define MULTI_EXPAND "Multiple expandable columns"
|
#define MULTI_EXPAND "Multiple expandable columns"
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
typedef GtkListStore MyModel;
|
typedef GtkListStore MyModel;
|
||||||
typedef GtkListStoreClass MyModelClass;
|
typedef GtkListStoreClass MyModelClass;
|
||||||
|
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
const char *string;
|
const char *string;
|
||||||
gboolean is_editable;
|
gboolean is_editable;
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
GtkTreeModel *model = NULL;
|
GtkTreeModel *model = NULL;
|
||||||
static GRand *grand = NULL;
|
static GRand *grand = NULL;
|
||||||
GtkTreeSelection *selection = NULL;
|
GtkTreeSelection *selection = NULL;
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
typedef struct _TreeStruct TreeStruct;
|
typedef struct _TreeStruct TreeStruct;
|
||||||
struct _TreeStruct
|
struct _TreeStruct
|
||||||
{
|
{
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
static int repeats = 2;
|
static int repeats = 2;
|
||||||
static int max_size = 8;
|
static int max_size = 8;
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
clicked_icon (GtkTreeView *tv,
|
clicked_icon (GtkTreeView *tv,
|
||||||
int x,
|
int x,
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
typedef struct _ListSort ListSort;
|
typedef struct _ListSort ListSort;
|
||||||
struct _ListSort
|
struct _ListSort
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
/* Don't copy this bad example; inline RGB data is always a better
|
/* Don't copy this bad example; inline RGB data is always a better
|
||||||
* idea than inline XPMs.
|
* idea than inline XPMs.
|
||||||
*/
|
*/
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#include <gtk/gtk.h>
|
#include <gtk/gtk.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
typedef struct _TreeEntry TreeEntry;
|
typedef struct _TreeEntry TreeEntry;
|
||||||
|
|
||||||
struct _TreeEntry {
|
struct _TreeEntry {
|
||||||
|
@ -20,6 +20,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||||
|
|
||||||
GtkTreeStore *base_model;
|
GtkTreeStore *base_model;
|
||||||
static int node_count = 0;
|
static int node_count = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user