Eventually, most of these tests should be dropped.
#include <gtk/gtk.h>
#include <string.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
static char *
get_content (void)
{
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
static void
accel_edited_callback (GtkCellRendererText *cell,
const char *path_string,
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
static const char *baseline_pos_str[] = {
"BASELINE_POSITION_TOP",
"BASELINE_POSITION_CENTER",
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
/*******************************************************
* Simple Test *
*******************************************************/
#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 */
#include <string.h>
#include <stdio.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
/**
* oh yes, this test app surely has a lot of ugly code
*/
#include <gtk/gtk.h>
#include <stdarg.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
GtkWidget *text_view;
GtkListStore *model;
GArray *contents;
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
static void
combo_changed_cb (GtkWidget *combo,
gpointer data)
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
enum {
SIMPLE_ITEMS = 0,
FOCUS_ITEMS,
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
static GtkWidget *antialias;
static GtkWidget *subpixel;
static GtkWidget *hintstyle;
#include <gio/gio.h>
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
/* TODO
*
* - Labeled sections
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static GtkTreeModel *
create_model (void)
#include "test.xpm"
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
static gboolean done = FALSE;
static gboolean
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
static GtkTreeModel *
get_model (void)
{
#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
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
typedef enum {
RESPONSE_UNREVEAL,
} Response;
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
static void
on_button_clicked (GtkWidget *widget, gpointer data)
{
#include <string.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
typedef struct _Row Row;
typedef struct _RowClass RowClass;
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
static GdkContentProvider *
prepare (GtkDragSource *source,
double x,
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
#define INITIAL_HALIGN GTK_ALIGN_START
#define INITIAL_VALIGN GTK_ALIGN_START
#include <gtk/gtk.h>
#include <glib/gstdio.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
static void
activate (GSimpleAction *action,
GVariant *parameter,
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static void
horizontal_policy_changed (GtkComboBox *combo_box,
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
GtkWidget *stack;
GtkWidget *switcher;
GtkWidget *sidebar;
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
typedef struct _MyTooltip MyTooltip;
typedef struct _MyTooltipClass MyTooltipClass;
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
#define MIN_ROWS 50
#define MAX_ROWS 150
#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
#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"
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
typedef GtkListStore MyModel;
typedef GtkListStoreClass MyModelClass;
#include "config.h"
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
typedef struct {
const char *string;
gboolean is_editable;
#include "config.h"
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
GtkTreeModel *model = NULL;
static GRand *grand = NULL;
GtkTreeSelection *selection = NULL;
#include "config.h"
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
typedef struct _TreeStruct TreeStruct;
struct _TreeStruct
{
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
static int repeats = 2;
static int max_size = 8;
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
static gboolean
clicked_icon (GtkTreeView *tv,
int x,
#include "config.h"
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
typedef struct _ListSort ListSort;
struct _ListSort
#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.
*/
#include "config.h"
#include <gtk/gtk.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
typedef struct _TreeEntry TreeEntry;
struct _TreeEntry {
#include <stdlib.h>
#include <string.h>
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS
+
GtkTreeStore *base_model;
static int node_count = 0;