[geany/geany-plugins] a53c25: autoclose: Don't scroll the preferences UI horizontally
Colomban Wendling
git-noreply at xxxxx
Mon Jun 22 22:51:36 UTC 2015
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Mon, 22 Jun 2015 22:51:36 UTC
Commit: a53c25eb0611921953b39cfe42171280c606cd52
https://github.com/geany/geany-plugins/commit/a53c25eb0611921953b39cfe42171280c606cd52
Log Message:
-----------
autoclose: Don't scroll the preferences UI horizontally
Translations tend to change the width of the text, and horizontal
scrolling in such a dialog is annoying. So, let the size request do
its job for the width and don't allow horizontal scrolling.
Modified Paths:
--------------
autoclose/src/autoclose.c
Modified: autoclose/src/autoclose.c
4 lines changed, 2 insertions(+), 2 deletions(-)
===================================================================
@@ -1009,10 +1009,10 @@ plugin_configure(GtkDialog *dialog)
GtkWidget *widget, *vbox, *frame, *container, *scrollbox;
vbox = gtk_vbox_new(FALSE, 0);
scrollbox = gtk_scrolled_window_new(NULL, NULL);
- gtk_widget_set_size_request(GTK_WIDGET(scrollbox), 350, 400);
+ gtk_widget_set_size_request(GTK_WIDGET(scrollbox), -1, 400);
gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scrollbox), vbox);
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrollbox),
- GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+ GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
#define WIDGET_FRAME(description) G_STMT_START { \
container = gtk_vbox_new(FALSE, 0); \
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Plugins-Commits
mailing list