Re: Combobox on touchscreen

2017-06-27 Thread Roland Koebler
Hi, On Mon, Jun 26, 2017 at 10:08:36AM +, RĂºben Rodrigues wrote: > Following this post that didn't receive an answer > https://mail.gnome.org/archives/gtk-app-devel-list/2016-June/msg00030.html > , want to ask if someone knows this problem. I know this problem, since I wrote this mail. But m

combobox etc. on touchscreens?

2016-06-23 Thread Roland Koebler
Hi, it seems that comboboxes (and probably some other widgets) are broken on touchscreens. Is there any way to make them work again or to work around bug https://bugzilla.gnome.org/show_bug.cgi?id=333470? (Ideally, the bug would be fixed, but since it wasn't fixed the past 10 years, I don't have m

GTK+3 GtkCellRendererPixbuf: pixbuf vs. icon-name

2015-02-13 Thread Roland Koebler
Hi, I would like to render either an icon or a pixbuf at the same place in a TreeView. So, I tried to use a CellRendererPixbuf and either set the pixbuf- or icon-name-property: - Use a liststore with two columns, one for the pixbuf, one for the icon-name. - Set only one of pixbuf or icon-name,

Re: GTK3 GtkNotebook style

2014-06-26 Thread Roland Koebler
Here's the missing screenshot: http://www.simple-is-better.org/gtk/gtk3-notebook-style-problem.png Roland On Fri, Jun 27, 2014 at 02:33:22AM +0200, Roland Koebler wrote: > Hi, > > is there any way to style the label of an active GtkNotebook-tab in > GTK+3? > > Or:

GTK3 GtkNotebook style

2014-06-26 Thread Roland Koebler
Hi, is there any way to style the label of an active GtkNotebook-tab in GTK+3? Or: Why does "GtkNotebook * { font-weight: bold }" work, but "GtkNotebook tab:active * { font-weight: bold }" doesn't? I was only able to style the background, e.g. by: GtkNotebook tab{ background-color: gray

GtkTreeViewColumn/CellLayout: get/modify attributes?

2014-06-04 Thread Roland Koebler
Hi, I need to dynamically modify TreeViews, e.g. to determine which attributes are set in the GtkBuilder-file, and to show a different model-column in a view-column. But I don't know how: When I create GtkTreeViewColumns and GtkCellRenderers, I can set "attributes", to tell the renderer which dat

Pango completely broken in Python

2014-06-04 Thread Roland Koebler
Hi, is there *any* way to create Pango-attributes in Python and GTK+3, and is there *any* documentation about it? I tried to, but cannot find any function to create such attributes in Python, e.g.: - Pango.pango_attr_foreground_new() does not exist - Pango.attr_foreground_new() does not exist - P

Re: GtkGrid sets no expand with homogeneous

2014-04-03 Thread Roland Koebler
Hi, Have you tried to set the GtkGrid valign/halign properties to e.g. GTK_ALIGN_START instead of GTK_ALIGN_FILL? Then, the GtkGrid shouldn't "expand" the buttons. Roland ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnom

GtkLockButton / GPermission

2014-04-02 Thread Roland Koebler
Hi, is there any example for GtkLockButton (and/or GPermission)? I'm trying to use it, but all I get are segfaults (in Python): 1. Adding a GtkLockButton and clicking on it segfaults: $ python >>> from gi.repository import Gtk >>> w = Gtk.Window() >>> b = Gtk.LockButton() >>> w.add(b) >>> w.show

GtkPaned: visible handle?

2014-04-02 Thread Roland Koebler
Hi, according to the documentation (and the image on https://developer.gnome.org/gtk3/stable/GtkPaned.html), GtkPaned-widgets have a visible handle (e.g. 4 dots) to show that the user can drag this handle. Unfortunately, these handles are invisible here -- both in Glade and in the running program

Re: GTK+3 styles and themes

2014-04-01 Thread Roland Koebler
Hi, ok, I'm answering my own question -- maybe this is also helpful for someone else: Using custom stylesheets *does* work (although it still seems that ~/.gtk-3.0.css has no effect under Gnome3); but for some themes and Gnome3, setting "background-color" doesn't have any effect, but setting "bac

GTK+3 styles and themes

2014-04-01 Thread Roland Koebler
Hi, in some situations, it's very useful to colorize some widgets, to improve usability, e.g. a red background for invalid entries or buttons in different colors. I know that this should be used rarely, but it *really* improves usability in some cases. In GTK+2, this was possible via modify_bg();

Re: file chooser dialog

2006-08-04 Thread Roland Koebler
hi, > You need to normalize the paths, then you can string compare them. that's right. and then you could compare them with g_str_has_prefix(), for example. > Given that the current directory were /tmp/barb, normalizing the path > will transform ./../file and /tmp/barb/file into ./file. if you wa

Re: file chooser dialog

2006-07-31 Thread Roland Koebler
hi, > Does anybody also have an idea, how to realize the decision, if a path is > below another one (platform independent would be nice but not absolutely > necessary). maybe there already is such a function in a library - I don't know. but you can use glib. look here: http://developer.gnome.org/d

Re: Simple Yes/No dialog

2006-07-18 Thread Roland Koebler
On 15-Jul-2006 15:34:12, Freddie Unpenstein wrote: > >> if you want to make non-blocking dialogs, you have to take care >> i.e. that: >> - a lot of non-blocking-dialogs may be opened, and stay open. > > gtk_widget_present() comes in handy there... thanks, this is very useful for non-blocking dial

Re: RADiola, a GTK RAD tool

2006-07-17 Thread Roland Koebler
hi, after I read a bit of your documentation-pdf, I have some annotations: pdf> - No knowledgement of a programming language is needed. pdf> Applications are completely created in a graphical manner. I think this is only possible for very simple applications. for more complex applications you w

ComboBox questions

2006-07-14 Thread Roland Koebler
boBox questions hi, I've got a few questions about the ComboBox (or ComboBoxEntry) with many items/entries. I didn't find anything about that in the documentation, but maybe you can help me: - can I somehow control in which "direction" (up or down) the popup appears ? or can I control scroll-p

widget-attached-popup ?

2006-07-14 Thread Roland Koebler
hi, when you click on a ComboBox, a popup appears, which is "attached" to the ComboBox. it's the same with i.e. MenuBars. now: how can I create such a "widget-attached-popup" ? i.e. use a "normal" button, and popup i.e. a treeview when clicking on it. do I have to write my own GtkBin-subclass

Re: filechooserbutton and saving

2006-06-28 Thread Roland Koebler
hi, >>> In my opinion `save file chooser' is an entry plus a button >>> to browse the filesystem if one wishes to. that's what I used in one of my programs, because the GtkFileChooserButton didn't do what I wanted it to do (it abbreviated the filename in a very bad way). so, you can simple use an

RE: Trouble with GtkPaned

2006-05-24 Thread Roland Koebler
hi, > I don't think this is the problem. > Before the window is resized, I have no problem moving the divider; I can > make either pane take up the entire area of the window. The problem arises > only when I make the window wider. When I do that, it is impossible for the > left pane to take up t