GTK+3 is a graphical user interface toolkit.

learn more… | top users | synonyms

0
votes
1answer
511 views

Gtk.MessageDialog window parameter problems

I'm in a deeply nested class (which inherits from Gtk.Box) and I need to get a reference to the GtkWindow I'm in to pass to a call to Gtk.MessageDialog() yet I cant seem to find a reference to it. I ...
2
votes
1answer
89 views

What are the default arguments for ClutterGst?

Hello everyone I am trying to make a simple video player using Gtk3 python & Gstreamer. I am also using Clutter,ClutterGtk & ClutterGst The problem arises when initialise the ClutterGst like: ...
2
votes
1answer
1k views

How do I implement a quit dialog in Gtk3?

I have almost finished my Ubuntu App Showdown app, but would like to make it somewhat more robust, upon application quit I iterate through the open files checking for unsaved files, if any are found I ...
0
votes
1answer
105 views

Which packing constant to use for set_child_packing() in Python

I want to change a child of a box's padding; so I am using set_child_packing on the box holding the child. I can't figure out what to use as the constant for for the pack_type. Using PACK_START from ...
4
votes
2answers
1k 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 ...
5
votes
1answer
829 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
1k 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?
1
vote
1answer
5k views

How to change GtkWidget background in GTK3?

I'm trying to use override_background_color on some GTK3 widgets but they still showing up with the default background color.
0
votes
1answer
236 views

Opening a Window within an already open window (Quickly/Glade)

I have a question regarding window and button implementation. If I have a toolbar set up, and I have a button on it, is it possible to get it to open a window right within the program? I mean like ...
2
votes
2answers
174 views

Why does GtkCalendar counts months from 0?

So I spent several hours in rage, figuring out why isn't my code writing to the /sys/class/rtc/rtc0/wakealarm correctly. The problem is that it doesn't return anything if the value is wrong. And ...
0
votes
1answer
161 views

How to use Events (GdkEvents) in Glade

When selecting a widget, in the common tab you can find the events control. What is it for? How to use it? Thanks!
2
votes
1answer
277 views

Ready-to-use time and/or datetime selection widgets for GTK3?

I've checked hamster-applet, gnome-control-center datetime and gnome-schedule. They all define a different datetime selection composed from basic widgets. I'm surprised it wasn't made available as a ...
0
votes
2answers
515 views

How to hide a GTK window in Python before call or os.system

So, I'm depeloping a Python/GTK app which, after showing an assistant, it hides the assistant's window and runs an external app. The problem is that window.hide() doesn't works if, after the command, ...
0
votes
1answer
132 views

What widget can I use to edit text and highlight parts of it?

Using the quickly ubuntu-application template (i.e. python and GTK3), what solutions exist to display a text editor in which I can highlight some parts of the text and add annotations/extra visuals at ...
1
vote
2answers
200 views

Problems related with spin buttons

So, I have an important problem related with spin buttons in Python/GTK3. I'm trying to create a spin button in my project, Virtuam, and it seems to work... but with a bug which blocks the +/- ...
3
votes
1answer
369 views

GTK3 tabs with big icons

I want to implement something similar to the ubuntu software center's tabs. What widget is it? Any working example in python where I could take a look? Is this widget available in Glade? Thanks ...
3
votes
1answer
353 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 ...
1
vote
1answer
103 views

How to keep Text within GTK CellRenderers at center?

Hello I am using GTK3 CellRenderers in my project, but I want to put text within that at Center, how will I do that?
5
votes
1answer
435 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 ...
3
votes
1answer
368 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 ...
5
votes
3answers
3k 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 ...
3
votes
1answer
2k 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
740 views

how to create gnome 3 extensions

I have installed and enjoyed the extensions provided by gnome3. But I'm looking for tutorials and sites that explain how to create them. Do I need to know GTK3 and CSS and Javascript? I haven’t done ...
0
votes
1answer
2k views

How to connect GTK3 button click events to callbacks

So, I'm developing my 1st app with GTK3 and I don't know how to link my buttons with their respective defs. Can anyone post a tutorial, an example or some docs? Using next things for developing my ...
4
votes
1answer
527 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: ...
1
vote
1answer
2k views

How to change the glassy look in GTK3 theme?

I am wondering how can I change the glass color (transparency) in GTK3? For example, if one hits the hot-spot corner (top-left) and you go to the applications display, there is a layer of glassy ...
4
votes
1answer
2k views

Reload Gtk+ 3.0 theme

I'm trying to customize my Gtk+3.0 theme, when I make a change in my theme, I change between two themes (with MyUnity) to force applications to reload the theme and test mine. But when I do that, the ...
4
votes
1answer
1k 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 ...
0
votes
1answer
515 views

When clicking below window title bar in KDE, window dragging is initiated. Can I change this behavior?

this one is regarding KDE in Ubuntu 12.04. The thing is that whenever I click below the window title bar in KDE, the window manager always assumes I want to drag the window, not just activate it. ...
1
vote
0answers
22 views

Has anyone got the Mist engine to work on gtk3? [duplicate]

Possible Duplicate: What GTK+ 3 engines are available? I've just upgraded my xubuntu installation to Precise and run into gtk3 theme problems - my theme based on the Mist engine doesn't ...
1
vote
1answer
403 views

Desktop file for my python gtk3 app does not load the app

I am creating an GTK3 python application for Ubuntu. At the moment the application installs in the following locations. In /opt/NSTrain folder where NSTrain is the name of my application. The NSTrain ...
4
votes
1answer
2k 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 ...
1
vote
1answer
769 views

gtk3 window is not redrawn correctly

I am creating a simple GTK3 application. The main toplevel window has a search button which will display another toplevel gtk3 window. When I click the close button (near the titlebar) on the second ...
0
votes
1answer
1k views

Ubuntu12.04 GTK+ theme problem

I try to install a gtk3 theme called 'A New Start' following the instructions on some websites, but when I change the gtk+ theme by using tweak tool, my font turns white and it's really horrible... ...
3
votes
3answers
2k views

Why Totem, EOG, …? have dark toolbars with default gnome-shell theme - Adwaita?

Totem, EOG, have dark toolbars for some reason: while other regular GTK3 applications have expected toolbar: This doesn't look like preferred way, so why is it like this and how can I set all ...
4
votes
2answers
1k 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 ...
3
votes
1answer
2k views

Hide window title in gnome-shell using mutter, gdk, wnck or gtk

I'm after a way to: get list of all application windows currently open, as a Gdk or Gtk window remove window decorations for selected windows (maximised in my case). I'd like to do this using ...
4
votes
2answers
2k 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 ...
1
vote
2answers
1k views

Python, Gtk3 and Gstreamer

This isn't a really happy combination, but it does work for the most of the time. However, I just bumped into a problem with Gio.File. This will always result in TypeError and Python segfaulting: ...
9
votes
3answers
643 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 ...
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:
1
vote
2answers
1k views

Is there a GTK+3 version of the old default Human theme?

I came across How do I install wallpapers from older releases?, and I was wondering if I could somehow get a GTK+3 version of the old Human theme used prior to 10.04 LTS to complete the retro look on ...
1
vote
1answer
2k views

Use Adwaita Dark for Libre Office and possibly other apps too?

I would like to know how to force some apps to use the Adwaita dark theme. I noticed by default that the movie player and photo viewer apps in gnome shell use Adwaita Dark while most other apps use ...
1
vote
1answer
315 views

Will Glade 3.12 work for Ubuntu 11.10 using Unity…no Gnome 3

I'm in the process of learning 'Quickly' and noticed that it only has 'Glade 3.8.0' and I like to keep all my apps fully up to date. I noticed however on the gnome.org site it said that 'Glade 3.12' ...
0
votes
1answer
194 views

Focusing a specific application instance by code?

I'm writing an application using Python and GTK3. This application will open instances of other applications, such as GEdit. Now, I'd also want my application to be able to focus each of those ...
13
votes
3answers
4k 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 ...
2
votes
1answer
455 views

How to enable resize grips in Unity-2D?

How do you enable resize grips in Unity-2D (or any non-Compiz setup) for GTK 3? In Oneiric, you could add the following to ~/.config/gtk-3.0/gtk.css: * { -GtkWindow-resize-grip-default: true; } ...
2
votes
3answers
2k views

Uninstalling Gnome 3 and reverting back to Gnome 2?

Is it possible to completely purge anything Gnome3 and completely revert to gnome 2 with the panel and stuff. I do not want to get suggestions on how to get to the classic session, I want to know how ...
2
votes
1answer
354 views

Corrupted theme for certain applications [closed]

I am facing a problem related to corrupted gtk theme for certain applications. My default theme is Ambiance under Unity. It works fine for most applications like Chrome, Firefox, Nautilus, etc. ...
1
vote
1answer
461 views

Forcing an application to use gtk 3 instead of gtk 2

Is there anyway to force an application to use gtk3+ instead of gtk2+ ?