GTK+3 is a graphical user interface toolkit.

learn more… | top users | synonyms

40
votes
1answer
39k views

How do I install third-party rhythmbox plugins?

Now that the dust has settled and Rhythmbox has become (again) the default music-media player in 12.04 & 12.10, I'm interested in extending its functionality. For example, the default lyric ...
14
votes
4answers
3k views

Can I apply a different GTK3 theme from the main one to an individual application?

For example, can I keep Ambiance as main theme but assign elementary theme to elementary's app?
11
votes
3answers
3k views

How can I “diff” two files with Nautilus?

I have installed Meld and found out it's a great comparing tool. Unfortunately there is no integration with Nautilus 3.2. This means, I can't right click on files and select an option to open them in ...
10
votes
1answer
273 views

Can I theme the menubar to look different if a window is maximized?

I know you can theme the Unity menubar in GTK+3 using CSS, but is there a way to theme it differently depending on whether a window is maximized? This would be useful for e.g. themes where the ...
9
votes
3answers
4k views

How do I theme the Nautilus background image?

I want to change the background image in the Nautilus file browser. My idea is to put my own style in the background. I'm using Ubuntu 11.10 and Nautilus is version 3. I know that I have to change ...
9
votes
3answers
549 views

GtkIconView doesn't automatically fill the space with icon when user resizes the window

In the Ubuntu Accomplishments project we are having a few unusual bugs: https://bugs.launchpad.net/bugs/986708 https://bugs.launchpad.net/bugs/974728 Namely that we have a window with a ...
8
votes
2answers
978 views

How to create a sliding widget (GTK+, Quickly)

Recently I've seen this widget in Gedit: It appears when you press Ctrl + F. What I am interested is in how to get the sliding effect. Any suggestion will be appreciated.
7
votes
3answers
5k views

Can gtk2 themes be converted to gtk3 themes?

I really don't like the stock gtk3 themes and have never found one I like. I do however have a few gtk2 themes I really like. Can these gtk2 themes be ported to gtk3 or made to work in 11.10?
7
votes
3answers
756 views

How do I disable mnemonics in GTK3?

In Natty Narwhal I used to do some nifty tricks with .gtkrc-2.0 to disable mnemonics (underlined menus) but now it's impossible. I assume in Oneiric Ocelot it will be something different because it ...
7
votes
1answer
781 views

How to update gtk-3.4 themes to the new gtk-3.6

Is it too complicated to achieve? if it's not could you tell me how, please. I have some basic knowledge about gtk and css. Also, is this going to continue happening each time gnome releases a new ...
7
votes
1answer
331 views

How do I theme the Sound Menu playback buttons? [closed]

In my GTK+2/3 theme I am making for Ubuntu 12.04 LTS, there's a very noticeable problem when it comes to the Sound Menu buttons - they are completely black with white icons: Obviously, this does ...
6
votes
1answer
570 views

Mouse-scroll does not work in gedit [closed]

Since the update to 13.10 scrolling in Gedit does not work anymore. Anywhere else it does. It could be related with Bug #1240957 “Scrolling behaviour and window focus has changed a...” : Bugs : ...
6
votes
1answer
347 views

How can I resize the volume OSD in Gnome3 (Shell)?

How can I resize the volume OSD display to a more "sane" size? Currently it takes about 1/4th of my screen height. I may be shortsighted, but not that shortsighted. I checked my theme settings, but ...
5
votes
2answers
570 views

How to get rid of the background gradient of the inline GtkToolbar?

When you run the below code, it will show an inline toolbar in a window. Notice how the inline toolbar has a stand-out backbround. Is there a way to apply CSS to get rid of it and make blend with ...
5
votes
2answers
2k views

How to add vte terminal widget in GTK3?

I'm trying to add vte widget in my application and the examples I've found use .fork_command() to execute a command in that widget. But according to ...
5
votes
2answers
2k views

Will it be possible to use GTK3.2's HTML5 extension in 12.04?

Does anybody know whether or not it will be possible to use the GTK3.2's new HTML5-extension in Ubuntu 12.04? They announced that GNOME3.2 will be included, but will they build the GTK packages with ...
5
votes
2answers
1k views

Porting “import gobject” to use GObject-Introspection. (PyGTK to PyGI and GTK 3)

I've been trying to port a library from PyGTK to use GI and GTK3. The problem is I can't find any resources specific to the gobject imports, but only for GTK. I was hoping that if someone would ...
5
votes
2answers
8k views

How to change the background colour of a window?

Since 11.10 you can't change much in the appearance options, just the windows border styles but NOT the background colour like you could do it in Natty. For some odd reason as I upgraded to 11.10, it ...
5
votes
1answer
324 views

Why does creating a new tab give me 'TypeError: Expected Gtk.Widget, but got GObjectMeta'?

def on_btn_new_subject_activate(self, widget): self.subjects.append_page(Gtk.TextView(), "Testing") I am trying to create a new tab on a text area but I whenever the signal is called by the ...
5
votes
1answer
820 views

How to theme Nautilus' resize area/handle border?

I'd like to change the visual appearance of the marked resize border/areas in Nautilus: If I knew how those elements are named in GTK+, I'm sure I could find out what I'd need to add to ...
4
votes
1answer
388 views

Python/GTK3 app crashing on importing “indicate” (python-indicate)

I'm trying to integrate my Python/GTK3 app with Ubuntu's messaging menu and every time I try to import "indicate" (python-indicate) my app crashes, with the following traceback: ...
4
votes
2answers
931 views

How to fix GTK3 scrollbar behavior

I have removed the overlay scrollbars. How can I configure GTK3 scrollbar clicking behavior? GTK3 applications scrollbars behave strangely under Ubuntu 12.10 and 13.04. This also happens with Fedora ...
4
votes
2answers
797 views

Creating widgets using GtkBuilder

I am using Glade to design a Box with widgets and then load these widgets into my UI at run-time. To create each Box with widgets at run-time, I create a new GtkBuilder, call add_from_string passing ...
4
votes
2answers
130 views

Why debug packages don't include sources?

I was expecting that after installing the package libgtk-3-0-dbg I would get DDD to show the source code when stepping into gtk+, however I had to download the source package myself (from here) and ...
4
votes
1answer
356 views

How do I force a redraw using python in gtk3?

Apparently, in Gtk3 the 'expose' event/signal is replaced with the 'draw' signal. How do I force a redraw using python in Gtk3? I was not able to find any window invalidation function.
4
votes
1answer
527 views

How to apply gradient background to GtkWidget in GTK3?

Is it possible to use gradient as a background for generic GtkWidget? Related question: How to change GtkWidget background in GTK3?
4
votes
2answers
818 views

KEY.is_pressed() in gi.repository.Gdk?

I was wondering if anyone knew how to detect if a key is currently pressed with either Gtk or Gdk and python? I don't want to use the key-pressed or key-released event for this scenario, but rather ...
4
votes
1answer
2k views

How do I get same scrollbar style for gtk-2.0 and gtk-3.0 apps?

Sorry for my English mistakes, I'm Spanish. I'm using Ubuntu 11.10 in a tablet. I've removed overlay-scrollbars and I have increased the scrollbars size to use them with fingers. In ...
4
votes
1answer
457 views

Is there any Gtk+ 3 port of the Redmond theme?

I have the gtk2 version of Redmond installed, but it doesn't work for programs using gtk3. Redmond looks like this: Or are there any gtk3 themes similar to redmond?
4
votes
1answer
798 views

Black areas with default (gray) theme in GTK3 based applications

I use Ubuntu 12.04 with the Blackbox window manager and the default (gray) GTK theme. With some GTK 3 applications, like Gedit, Disk utility and Evince I see black areas which should be gray and these ...
4
votes
2answers
1k views

gtk3 theme not working

the theme I'm trying to install has three folders: metacity, gtk2 and gtk3 if i activate it using gnome-tweak-tool it wont work everything looks extremely ugly, not the way it's supposed to be ...
3
votes
5answers
5k views

Are there any tweaks for fixing the appearance of Eclipse Juno on ubuntu?

As we have previously established ;-) running Eclipse on ubuntu is a bit disappointing on the UI side. Things are even worse now that Juno is out. Are there any tweaks specific to Gtk3 and Juno that ...
3
votes
1answer
231 views

Can't add page in a notebook

I am having some trouble adding a page to a Notebook widget. The error I get is this: AttributeError: 'function' object has no attribute 'append_page' I assume this means the object pages in the ...
3
votes
1answer
4k views

Making Gtk.Window Transparent?

Here's my code and I simply cannot figure out why my top level window doesn't become transparent. xwininfo says that windows has 32 Bit depth. I am running Ubuntu 11.10 and if I call .set_opacity(.5) ...
3
votes
1answer
322 views

Use primary-toolbar with Mono

I am trying to create an application for the Ubuntu App Contest. And I defined image of the design, but I am having problems with it. Principally with the primary-toolbar design, so it would look like ...
3
votes
2answers
1k views

Are there any GTK3 themes that work properly in Unity-2D? All that I've tried have “button glitches”

Every GTK3 theme I've ever tried other than Ambiance or Radiance has some "fallback" buttons when maximized instead of the theme buttons. Is there a fix or a theme without this issue? Example:
3
votes
1answer
649 views

Creating a Gtk window with input shape mask in python

I am trying to create a Gtk3 Window with a custom input mask, so that the window wouldn't receive any mouse clicks. This is a piece of code that I've came up with: surface = ...
3
votes
1answer
97 views

Gtk3+ keyboard shortcuts without signal matching

I am in the process of creating my first Gtk3+ application using python, and I am quite frustrated with the lack of documentation :( Well, what I'm trying to do is to configure the Delete button to ...
3
votes
1answer
783 views

How can I improve Eclipse's user Interface to get rid of the excessive padding and spacing?

Eclipse Juno (historical versions too) has too much padding applied to the tabs and borders. This makes it hard to work with multiple project folders, especially ones containing multiple packages and ...
3
votes
1answer
180 views

PyGObject: Gio.File.copy_async() doesn't exist in Ubuntu 12.04

According to GIO Reference Manual Gio.File has a methode copy_async. In Ubuntu 12.04 I'm getting an AttributeError when I try to call this method. What should I use instead to for asynchronous ...
3
votes
1answer
1k views

Glade: How can I set the value of a spin button?

I've done some spin buttons with Glade for my Python/GTK3 app, but I don't know how to set things like default, lower or higher value. How can I do it? Using the following things for development: ...
3
votes
1answer
1k views

Simple rhythmbox plugins do not work - why?

Simple Rhythmbox plugins do not work in 11.10. Does anybody know why? I heard that ubuntuone plugin for Rhythmbox stopped working because some changes to Rhythmbox - might this be the same case? More ...
3
votes
1answer
185 views

How to curve the edges of menus?

I want to know if this is possible. Like the menu when you right click, if the edges can be curved. I don't like to see the square appearance.
3
votes
1answer
135 views

Which media players available in the Ubuntu repositories uses GStreamer, GTK+ and were written in Python?

I'm planning to write a media player for Ubuntu to present in fair in the place I study. And I'd like to use GStreamer and GTK+ with Python, but I could not find a good documentation about the ...
3
votes
1answer
1k views

Pkg-Config Error (No such file or directory)

if i try and compile the tutorial code for GTK3 with the command gcc simple.c -o simple 'pkg-config --libs --cflags gtk+-3.0' it gives off the error gcc: error: pkg-config --libs --cflag gtk+-3.0: ...
3
votes
1answer
775 views

How to change the cursor to hourglass in a python gtk3 application

I've a function taking quite a long time to perform and I'm trying to change the cursor to an hour glass during the time the function is executed. But it only works the very first time the function is ...
3
votes
0answers
109 views

Gedit, Evince has print disabled

Print menu command is disabled in evince and gedit. Print functionality works fine in other applications like Chrome, GIMP, Firefox. Ubuntu printer setup correctly recognizes my printer and scanner ...
2
votes
1answer
10k views

How to change GTK3 color scheme on Ubuntu 13.04

I am making the transition from Windows 7 to Ubuntu 13.04. I have run Ubuntu twice on my laptop before, and switched back to Windows 7. Mostly because the orange and gray colors of Ubuntu is just ...
2
votes
3answers
1k views

Evince 3.10 with menubar

I find that the 2 buttoms menu from the evince v3.10.0 are not really useful. Why did ubuntu NOT re add an menubar?. It would have been looking better in unity ! The unity top panel has enough ...
2
votes
2answers
88 views

Thread works only on gui events - pygtk

I am developing a multithreaded application in pygtk using quickly and stuck with threads. So I am experimenting with various possibilities and found out that my thread work only when I do something ...