bxgaillard commented on this pull request.
> }
g_list_free(modules);
gtk_combo_box_set_active(GTK_COMBO_BOX(debugger_cmb), 0);
/* arguments */
args_frame = gtk_frame_new(_("Command Line Arguments"));
+#if GTK_CHECK_VERSION(3, 0, 0)
+ hbox = gtk_scrolled_window_new(
+ gtk_scrollable_get_hadjustment(GTK_SCROLLABLE(args_textview)),
+ gtk_scrollable_get_vadjustment(GTK_SCROLLABLE(args_textview)));
+ gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(hbox),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
The code can't be the same between GTK+2 and GTK+3 because the GtkTextView (and
the GtkTreeView) don't implement the GtkScrollable interface in GTK+2 whereas
they do in GTK+3 and shall seemingly be handled with a GtkScrolledWindow to add
the scrolling functionality from what I can understand.
However you're absolutely right about the use before assignment, this is fixed.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/pull/791#discussion_r239033661