tests: Ignore deprecations

Eventually, most of these tests should be dropped.
This commit is contained in:
Matthias Clasen 2022-10-07 20:59:10 -04:00
parent c32fed9238
commit 69e4c9b01e
37 changed files with 71 additions and 0 deletions

View File

@ -18,6 +18,8 @@
#include <gtk/gtk.h>
#include <string.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static char *
get_content (void)
{

View File

@ -18,6 +18,8 @@
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static void
accel_edited_callback (GtkCellRendererText *cell,
const char *path_string,

View File

@ -18,6 +18,8 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static const char *baseline_pos_str[] = {
"BASELINE_POSITION_TOP",
"BASELINE_POSITION_CENTER",

View File

@ -1,5 +1,7 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/*******************************************************
* Simple Test *
*******************************************************/

View File

@ -21,6 +21,8 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
#define COL_BACKGROUND 15
#define COL_LINE_NUM 16
#define NUM_COLS 17 /* change this when adding columns */

View File

@ -19,6 +19,8 @@
#include <string.h>
#include <stdio.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/**
* oh yes, this test app surely has a lot of ugly code
*/

View File

@ -20,6 +20,8 @@
#include <gtk/gtk.h>
#include <stdarg.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
GtkWidget *text_view;
GtkListStore *model;
GArray *contents;

View File

@ -24,6 +24,8 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static void
combo_changed_cb (GtkWidget *combo,
gpointer data)

View File

@ -17,6 +17,8 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
enum {
SIMPLE_ITEMS = 0,
FOCUS_ITEMS,

View File

@ -1,5 +1,7 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static GtkWidget *antialias;
static GtkWidget *subpixel;
static GtkWidget *hintstyle;

View File

@ -21,6 +21,8 @@
#include <gio/gio.h>
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/* TODO
*
* - Labeled sections

View File

@ -1,5 +1,6 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static GtkTreeModel *
create_model (void)

View File

@ -49,6 +49,8 @@
#include "test.xpm"
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static gboolean done = FALSE;
static gboolean

View File

@ -25,6 +25,8 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static GtkTreeModel *
get_model (void)
{

View File

@ -20,6 +20,8 @@
#include <sys/types.h>
#include <string.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
#define NUMBER_OF_ITEMS 10
#define SOME_ITEMS 100
#define MANY_ITEMS 10000

View File

@ -1,5 +1,7 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
typedef enum {
RESPONSE_UNREVEAL,
} Response;

View File

@ -1,5 +1,7 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static void
on_button_clicked (GtkWidget *widget, gpointer data)
{

View File

@ -2,6 +2,8 @@
#include <string.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
typedef struct _Row Row;
typedef struct _RowClass RowClass;

View File

@ -1,5 +1,7 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static GdkContentProvider *
prepare (GtkDragSource *source,
double x,

View File

@ -1,5 +1,7 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
#define INITIAL_HALIGN GTK_ALIGN_START
#define INITIAL_VALIGN GTK_ALIGN_START

View File

@ -1,6 +1,8 @@
#include <gtk/gtk.h>
#include <glib/gstdio.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static void
activate (GSimpleAction *action,
GVariant *parameter,

View File

@ -1,5 +1,6 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static void
horizontal_policy_changed (GtkComboBox *combo_box,

View File

@ -1,5 +1,7 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
GtkWidget *stack;
GtkWidget *switcher;
GtkWidget *sidebar;

View File

@ -23,6 +23,8 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
typedef struct _MyTooltip MyTooltip;
typedef struct _MyTooltipClass MyTooltipClass;

View File

@ -18,6 +18,8 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
#define MIN_ROWS 50
#define MAX_ROWS 150

View File

@ -19,6 +19,8 @@
#include "config.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

View File

@ -23,6 +23,8 @@
#include <gtk/gtk.h>
#include <string.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
#define NO_EXPAND "No expandable columns"
#define SINGLE_EXPAND "One expandable column"
#define MULTI_EXPAND "Multiple expandable columns"

View File

@ -1,5 +1,7 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
typedef GtkListStore MyModel;
typedef GtkListStoreClass MyModelClass;

View File

@ -19,6 +19,8 @@
#include "config.h"
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
typedef struct {
const char *string;
gboolean is_editable;

View File

@ -19,6 +19,8 @@
#include "config.h"
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
GtkTreeModel *model = NULL;
static GRand *grand = NULL;
GtkTreeSelection *selection = NULL;

View File

@ -19,6 +19,8 @@
#include "config.h"
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
typedef struct _TreeStruct TreeStruct;
struct _TreeStruct
{

View File

@ -25,6 +25,8 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static int repeats = 2;
static int max_size = 8;

View File

@ -1,5 +1,7 @@
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static gboolean
clicked_icon (GtkTreeView *tv,
int x,

View File

@ -19,6 +19,7 @@
#include "config.h"
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
typedef struct _ListSort ListSort;
struct _ListSort

View File

@ -20,6 +20,8 @@
#include <gtk/gtk.h>
#include <stdlib.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
/* Don't copy this bad example; inline RGB data is always a better
* idea than inline XPMs.
*/

View File

@ -22,6 +22,8 @@
#include "config.h"
#include <gtk/gtk.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
typedef struct _TreeEntry TreeEntry;
struct _TreeEntry {

View File

@ -20,6 +20,8 @@
#include <stdlib.h>
#include <string.h>
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
GtkTreeStore *base_model;
static int node_count = 0;