Commit a41df4d9693b23d81520dc7565dd45e4c7af53c6

Authored by Perry Werneck
1 parent fa82a162
Exists in master and in 1 other branch develop

Fixing package creation on old distros.

src/testprogram/testprogram.c
... ... @@ -56,7 +56,10 @@
56 56 // Create Terminal window
57 57 {
58 58 gtk_widget_set_can_default(terminal,TRUE);
  59 +
  60 +#if GTK_CHECK_VERSION(3,20,0)
59 61 gtk_widget_set_focus_on_click(terminal,TRUE);
  62 +#endif // GTK 3,20,0
60 63  
61 64 gtk_notebook_append_page(GTK_NOTEBOOK(notebook),terminal,gtk_label_new("Terminal"));
62 65  
... ...
src/testprogram/toolbar.c
... ... @@ -200,7 +200,10 @@ static void save_all_clicked(GtkButton G_GNUC_UNUSED(*button), GtkWidget *termin
200 200 gtk_toolbar_insert(GTK_TOOLBAR(toolbar),GTK_TOOL_ITEM(button),-1);
201 201 gtk_widget_set_can_focus(button,FALSE);
202 202 gtk_widget_set_can_default(button,FALSE);
  203 +#if GTK_CHECK_VERSION(3,20,0)
203 204 gtk_widget_set_focus_on_click(button,FALSE);
  205 +#endif // GTK 3,20,0
  206 +
204 207 }
205 208 gtk_widget_set_can_focus(toolbar,FALSE);
206 209  
... ...
src/trace/trace.c
... ... @@ -340,7 +340,10 @@
340 340  
341 341 gtk_widget_set_can_focus(item,FALSE);
342 342 gtk_widget_set_can_default(item,FALSE);
  343 +
  344 +#if GTK_CHECK_VERSION(3,20,0)
343 345 gtk_widget_set_focus_on_click(item,FALSE);
  346 +#endif // GTK 3,20,0
344 347  
345 348 gtk_box_pack_start(GTK_BOX(widget->buttons),item,FALSE,FALSE,4);
346 349  
... ...