Hot answers tagged

18

There is a useful python extension that incorporates Meld into Nautilus how to install Obtain the source or the deb package from the authors website. wget http://www.giuspen.com/software/nautilus-pyextensions_3.0-1_all.deb sudo apt-get install python-nautilus sudo dpkg -i nautilus-pyextensions_3.0-1_all.deb Search for pyextension in Dash and run ...


16

Found the answer here: https://forums.gentoo.org/viewtopic-t-948904-start-0.html Edit (or create) the file: ~/.config/gtk-3.0/settings.ini And add the following: [Settings] gtk-primary-button-warps-slider = false


15

This is the intelligent input bus - is an input method framework for multilingual input. If you don't use any different keyboard layouts for ex. japanese /asian etc. Try to disable it in System Setting -> Language (something like input method from ibus to none) Try to killall ibus-daemon and tell us if cpu is still has a high load.


12

You can use the GTK environment variable GTK_THEME=elementary to launch an app with the elementary theme. For example, running GTK_THEME=elementary pantheon-files will launch the elementary Files app using the elementary GTK theme. To get this to apply every time you launch a specific app, your best option is likely to create a custom .desktop file (...


12

Here a basic example: #!/usr/bin/env python from gi.repository import Gtk, Vte from gi.repository import GLib import os terminal = Vte.Terminal() terminal.fork_command_full( Vte.PtyFlags.DEFAULT, os.environ['HOME'], ["/bin/sh"], [], GLib.SpawnFlags.DO_NOT_REAP_CHILD, None, None, ) win = Gtk.Window() win.connect('delete-...


11

Here we go: First you need to find the default background color for the the current theme. Then you can inject it into the current css for the GtkToolbar class. # Get the default window background color for the the current theme. win_style_context = window.get_style_context() bg = win_style_context.lookup_color('theme_bg_color')[1].to_string() # Then we ...


9

You can also install the nautilus-compare package, available (starting with Ubuntu 12.04) from the standard Ubuntu package repositories -- run the following from a terminal: sudo apt-get install nautilus-compare This provides nautilus menu options for 2-way and 3-way comparisons. Meld is used by default, but any user-defined diff application can be used. ...


8

Ubuntu 11.10 is built on the premise of the GTK+3 software libraries. Therefore, removing GTK+3 will effectively mean no "ubuntu". What you will be left with is a newer kernel and a few additional slightly upgraded packages. If you are not interested in backward compatibility etc, then it would be simpler to start from a GTK+2/gnome2 based distro such as ...


8

You may switch to classic Theme in the menu: Window->Preferences->General->Appearance. This will get you back to the looks in eclipse 3.7 if you find that more appealing.


7

Its certainly possible, I don't have much of themeing experience, but when you navigate to /usr/share/themes/*Theme Name*/gtk-3.0/apps/ directory, you'll find .css files, named with apps they target, to theme, so yes you can create the Themes. Note that the way you mentioned to theme your apps may require some work to be done (like having both Ambiance and ...


7

Open the file /usr/share/themes/MyTheme/gtk-3.0/apps/nautilus.css (Requires root permission). Add this line: NautilusWindow * {background-image:url("bg.jpg");} where bg.jpg is the background image you want to display. Run nautilus -q to kill all open file browsers. Run nautilus. This will apply background to all classes present inside NautilusWindow....


7

I have achieved a fade-out effect using pure GTK and CSS. It is only working in GTK 3.6 and I am not sure if a slide in / out effect would be possible, however, if you want, you can look at the source at launchpad.net/uberwriter It works through a state-change and then GTK Transitions... Maybe with height // width that would be possible, too. EDIT ...


7

To achieve this we will edit nautilus.css. We will do this for the current user and not system-wide. Copying your theme to your home folder Open a terminal: mkdir ~/.themes/ cp -R /usr/share/themes/Ambiance/ ~/.themes/ (if you are not using the Ambiance theme (default), you will need to adapt the last command) Editing nautilus.css In a terminal open ...


6

I solved the problem, here's the code that works. The important part is setting the correct operator for operation that is being performed on the surface. #!/usr/bin/env python import cairo from gi.repository import Gtk, Gdk class MyWin (Gtk.Window): def __init__(self): super(MyWin, self).__init__() self.set_position(Gtk.WindowPosition....


6

Ported well, Yes and no. GTK 2 Themes make use of a gtkrc and other files like .png images. GTK 3 Themes make use of CSS for theming. CSS was chosen because it was easier to work with to make theming less difficult, so you would only need to create the needed CSS files to match the Colors and gradients, etc. of the GTK 2 you want. So there's really ...


6

The question is still valid and I found a way: any folder <FOLDER> could be chosen and then a /share/themes/ folder should be created inside it. Afterward any GTK3 theme could be put inside the latter and renamed to the name of the CURRENTLY ACTIVE THEME. At last, this command will make an app use the renamed theme instead of the currently active one: ...


6

Use from gi.repository import Indicate instead of import indicate


6

It's not a problem with your installation, but with your code. Change win = Gtk.window() to win = Gtk.Window()


6

This is a known issue. This theme doesn't support Ubuntu 14.04, because its GTK version (3.10) is too old. I'm working on GTK 3.14 support, which will make the theme compatible with Ubuntu 15.04. I'm sorry about this, but I don't have enough resources to backport the theme to older GTK versions. Source: https://github.com/horst3180/Arc-theme/issues/7


5

No: the application needs to be ported to GTK3. This means adapting the application's source code to the new GTK API and linking against the new libraries. If you'd like to see your favorite application ported to GTK3, you should get in touch with its developers.


5

Here it is: http://gnome-look.org/content/show.php/Human+GTK+3?content=164227 GTK 3 port made by me. Enjoy ;)


5

Have a look at this example on how to connect events to callbacks in Gtk 3 and Python. In short, you use the connect() method to connect a signal name (which is emitted when an event such as a button click occurs) to a callback, which is the function that will handle your event. def __init__(self): # Other initialization code # We create a button ...


5

There's a great tool that let's you easily configure GTK2 and GTK3 themes on KDE: GTK2 + GTK3 Configuration under KDE Archlinux Debian Go to the place where you downloaded your file and in a console type: sudo dpkg -i package_name.deb Where package name is the name of the package you downloaded If it complains about a ependeny kdebase-runtime needed, ...


5

I actually managed to solve my question myself. I will explain here how for those who are interested: In the folder /usr/share/themes/Zukitwo-Dark/gtk-3.0 edit as root the file gtk-widgets.css. Under /default/ include both lines -GtkScrollbar-has-forward-stepper: 1; -GtkScrollbar-has-backward-stepper: 1; Make sure that the "stepper-size" is set to 13 (...


5

This question has already been answered here. Corebird packages are now available. If you're on Ubuntu 14.04, open terminal and type: sudo add-apt-repository ppa:gnome3-team/gnome3 sudo add-apt-repository ppa:gnome3-team/gnome3-staging Then, for both 14.04 and 14.10 flavours, type: sudo add-apt-repository ppa:ubuntuhandbook1/corebird sudo apt-get ...


4

As per previous comments, the translation you asked would be as follows: from gi.repository import GObject __gsignals__ = {'cell-edited': (GObject.SignalFlags.RUN_LAST, GObject.TYPE_NONE, (GObject.TYPE_PYOBJECT, GObject.TYPE_PYOBJECT, GObject.TYPE_PYOBJECT, GObject.TYPE_PYOBJECT, GObject....


4

Think I've cracked the code after dir()-ing everything I could find in the GObject class => G_SIGNAL_RUN_FIRST is found in the GSignalFlags enum, which translates to GObject.SignalFlags.RUN_FIRST. This is consistent, so G_SIGNAL_MATCH_ID found in the enum GSignalMatchType translates to GObject.SignalMatchType.ID. Not entirely obvious, but easy enough once ...


4

I created a PPA with a Broadway-backend enabled GTK+. You can find it here.


4

Well, apparently not: $ GDK_BACKEND=broadway gnome-calculator Gdk-ERROR **: Unsupported GDK backend: broadway Trace/breakpoint trap (core dumped) You could try to create a bugreport for the Ubuntu GTK3 package, asking to compile it with --enable-broadway-backend GTK3 Ubuntu source package



Only top voted, non community-wiki answers of a minimum length are eligible