Re: Need help with gtk_tree_view_set_cursor

2014-04-01 Thread Chris Angelico
On Wed, Apr 2, 2014 at 7:53 AM, aullidolu...@gmail.com wrote: > The strings "0" to "9" are displayed as expected on the treeview. The idea > is if I hit GDK_KEY_Up (since there's no upper level) should select the > last one; my function moveItemUP, does work in someway, because instead of > select

Re: GTK+3 styles and themes

2014-04-01 Thread Liam R E Quin
On Tue, 2014-04-01 at 11:49 +0200, Roland Koebler wrote: > 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 > "background" seems to work

Need help with gtk_tree_view_set_cursor

2014-04-01 Thread aullidolu...@gmail.com
Hi, I'm using GTK+2 (2.24) and I'm detecting a strange behavior in gtk_tree_view_set_cursor. This is my code: // display 0-9 in the list gint addItems(GtkListStore *model) { gint items; for (items = 0; items < 10; items++) { GtkTreeIter iter; gchar *item; item = g_strdup_printf("%i", items); gtk_

Custom Gtk3 Widget - scroll_event

2014-04-01 Thread Bernhard Schuster
hey! I am trying to derive a custom widget from GtkWidget. (Yet another approach to plot data, I got some special fancy requirements). So I thought I could just overwrite the scroll_event handler/function-pointer and get hold of all scroll events on that widget. But it does not work as expecte

Re: GTK+3 styles and themes

2014-04-01 Thread Colomban Wendling
Le 01/04/2014 11:49, Roland Koebler a écrit : > [...] > > Is there any documentation of this? > Especially when to use "background-color" and when to use "background"? > The "GtkCssProvider"-documentation only mentions "background-color". https://bugzilla.gnome.org/show_bug.cgi?id=656461 The pro

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();

get icon from filename

2014-04-01 Thread Wiky
There are several files to download. And before downloading, I want to show the user what files to be downloaded, with their icons. So I have a filename such as 'hello.mkv' which not exists but to be downloaded. How can I get an icon GdkPixbuf from the filename 'hello.mkv' I tried GIcon *i