Commit 16cdbfceedf87db8d4298f5352fb7fae1950a67c
1 parent
59fd635c
Exists in
master
and in
5 other branches
Ajustes para compilar no gtk mais antigo
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
src/pw3270/trace.c
@@ -323,7 +323,11 @@ static void destroy(GtkObject *widget) | @@ -323,7 +323,11 @@ static void destroy(GtkObject *widget) | ||
323 | { | 323 | { |
324 | GtkWidget * widget; | 324 | GtkWidget * widget; |
325 | GtkWidget * view; | 325 | GtkWidget * view; |
326 | +#if GTK_CHECK_VERSION(3,0,0) | ||
326 | GtkWidget * vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL,0); | 327 | GtkWidget * vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL,0); |
328 | +#else | ||
329 | + GtkWidget * vbox = gtk_vbox_new(FALSE,0); | ||
330 | +#endif // GTK_CHECK_VERSION | ||
327 | gchar * fontname = get_string_from_config("trace", "fontname", "Monospace 8"); | 331 | gchar * fontname = get_string_from_config("trace", "fontname", "Monospace 8"); |
328 | PangoFontDescription * fontdesc = pango_font_description_from_string("Monospace 8"); | 332 | PangoFontDescription * fontdesc = pango_font_description_from_string("Monospace 8"); |
329 | 333 | ||
@@ -369,7 +373,11 @@ static void destroy(GtkObject *widget) | @@ -369,7 +373,11 @@ static void destroy(GtkObject *widget) | ||
369 | gtk_box_pack_start(GTK_BOX(vbox),widget,TRUE,TRUE,0); | 373 | gtk_box_pack_start(GTK_BOX(vbox),widget,TRUE,TRUE,0); |
370 | 374 | ||
371 | // Edit box | 375 | // Edit box |
376 | +#if GTK_CHECK_VERSION(3,0,0) | ||
372 | widget = gtk_box_new(GTK_ORIENTATION_HORIZONTAL,0); | 377 | widget = gtk_box_new(GTK_ORIENTATION_HORIZONTAL,0); |
378 | +#else | ||
379 | + widget = gtk_hbox_new(FALSE,0); | ||
380 | +#endif // GTK_CHECK_VERSION | ||
373 | gtk_box_pack_start(GTK_BOX(widget),gtk_label_new( _( "Command:" )),FALSE,TRUE,4); | 381 | gtk_box_pack_start(GTK_BOX(widget),gtk_label_new( _( "Command:" )),FALSE,TRUE,4); |
374 | window->entry = gtk_entry_new(); | 382 | window->entry = gtk_entry_new(); |
375 | gtk_box_pack_start(GTK_BOX(widget),window->entry,TRUE,TRUE,4); | 383 | gtk_box_pack_start(GTK_BOX(widget),window->entry,TRUE,TRUE,4); |