GdkDisplay is only available in gtk 2.2 and later

it is not available in gtk 2.0 which all of us using more prooven and stable (==obsolete) versions use.


svn path=/trunk/; revision=11455
This commit is contained in:
Ronnie Sahlberg 2004-07-21 08:51:08 +00:00
parent 6041d12dde
commit 1824fa29c2

View file

@ -543,7 +543,8 @@ draw_hostlist_table_data(hostlist_table *hl)
gtk_clist_thaw(hl->table);
}
#if GTK_MAJOR_VERSION >= 2
/* GdkDisplay is only available in GTK 2.2 and later */
#if (GTK_MAJOR_VERSION > 2) || ( (GTK_MAJOR_VERSION == 2) && (GTK_MINOR_VERSION >= 2) )
static void
copy_as_csv_cb(GtkWindow *win _U_, gpointer data)
{
@ -594,7 +595,7 @@ init_hostlist_table_page(hostlist_table *hosttable, GtkWidget *vbox, gboolean hi
GtkWidget *column_lb;
GString *error_string;
char title[256];
#if GTK_MAJOR_VERSION >= 2
#if (GTK_MAJOR_VERSION > 2) || ( (GTK_MAJOR_VERSION == 2) && (GTK_MINOR_VERSION >= 2) )
GtkWidget *copy_bt;
GtkTooltips *tooltips = gtk_tooltips_new();
#endif
@ -687,7 +688,7 @@ init_hostlist_table_page(hostlist_table *hosttable, GtkWidget *vbox, gboolean hi
/* create popup menu for this table */
hostlist_create_popup_menu(hosttable);
#if GTK_MAJOR_VERSION >= 2
#if (GTK_MAJOR_VERSION > 2) || ( (GTK_MAJOR_VERSION == 2) && (GTK_MINOR_VERSION >= 2) )
copy_bt = gtk_button_new_with_label ("Copy content to clipboard as CSV");
gtk_tooltips_set_tip(tooltips, copy_bt, "Copy all statistical values to the clipboard in CSV (Comma Seperated Values) format.", NULL);
SIGNAL_CONNECT(copy_bt, "clicked", copy_as_csv_cb,(gpointer *) hosttable);