Hot answers tagged

223

To use gtk2 or gtk3 apps you don't need to install anything. But, if you want to develop (or even just compile) apps this is what you're looking for: sudo apt-get install libgtk-3-dev


47

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


35

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 (launcher)...


27

I used the procedure stated in this website. Open about:config in the address bar Create a new string type preference (right mouse button > New > String) named widget.content.gtk-theme-override Set the value to the light theme to use for rendering purposes (e.g. Adwaita) Restart Firefox This forced Firefox to use the light theme instead of ...


24

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.


23

To install the GTK2 and GTK3 modules: sudo apt-get install appmenu-gtk2-module appmenu-gtk3-module


18

I got this from https://wiki.gnome.org/Projects/GTK%2B/Inspector: GtkInspector is the built-in interactive debugging support in GTK+. It was added in GTK+ 3.14, based on a copy of the well-estabished gtkparasite. The debugger is disabled by default. To enable it run in a terminal: gsettings set org.gtk.Settings.Debug enable-inspector-keybinding ...


16

This solution worked for me. Enter this line in the terminal. gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/DialogsUseHeader':<0>}" And buttons are back on the bottom of the dialog.


12

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. ...


12

Create a splash window You can use GTK's gtk_window_set_decorated() to create a splash window without (any) decorations. Combined with gtk_window_set_position(), you can pretty much create a custom splash screen. An example (script1, the splash window): #!/usr/bin/env python3 import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk, Gdk, ...


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 ...


11

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 (...


11

Method 1: Enable the shortcut: Install dconf-editor with sudo apt-get install dconf-editor Navigate to org > gtk > settings > debug Set enable-inspector-keybinding to true Try the shortcut. Method 2: Run the program to debug with the GTK_DEBUG variable: Instead of running the program to debug as usual (myprogram --argument) you only need to run ...


11

Edit: this question deals with Kubuntu 18.04. Users of Kubuntu 20.04 will find the experience very decent. This is possible in Firefox 64 with the important caveat that it is currently buggy. See the edit below. First, Kubuntu 18.04+ users need to install xdg-desktop-portal. Your system probably already has xdg-desktop-portal-kde installed by default. To ...


10

The question is still valid and I found a way: create any folder path/to/MY_FOLDER create a /share/themes/ folder inside it (that is path/to/MY_FOLDER/share/themes). put any GTK3 theme inside the latter rename the theme 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 ...


9

I've found the solution, I'm using GTK+ 3.22 for reference, just need to turn on this setting: gsettings set org.gtk.Settings.Debug enable-inspector-keybinding true And then the "Help" menu of gnome-terminal will show a "Inspector" item you just need to click it. This is for the VTE widget only: Alternatively, if you are using jhbuild, the vte module has ...


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.


8

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 ...


8

If you Google this, you will find guides like this and this. In addition, you will find that this has been asked before on this very site at least twice: once in 2016 and once in 2015. Now, to be fair, I'm used to arch, which already ships with 3.20. Being maybe 1 year after the release of 3.20, I almost didn't believe the Ubuntu guides above. Really? Add a ...


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

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


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 ...


7

I have a solution for GTK applications, and a solution for dolphin. I've never figured out how to fix this for non-GTK applications (e.g., LibreOffice). For GTK: Fire up dconf-editor. Navigate to org/gtk/settings/file-chooser. De-select the box next to sort-directories-first. Close the dialog. For dolphin: Navigate to Control / Sort by >. De-select "...


6

I'm not sure if anyone else is still having this issue but I sure was. the solution is INCREDIBLY SIMPLE. I run xfce4 on Arch Linux with the "dusk theme". I was getting this error for a gtk.css file on line 72. By grepping the output of "find", I found the file in /usr/share/themes/Xfce-dusk/gtk-3.0/gtk.css. On Line 72 I changed it from, "text-shadow: 1 ...


6

Edit the files in the directory: /usr/share/themes/[Themename]/gtk-3.0/apps/unity.css To avoid clobbering the original them it's better to copy the them to your personal area under a different name, then make the changes. The theme will appear in the theme chooser as the name you copied them to. Per-user theme ares: ~/.themes/[Theme Name] Specifically ...


6

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 ...


6

Turns out I needed to download the x86_64 version from the Mozilla site, not the 32-bit version.


6

You can follow command cat /etc/X11/default-display-manager. You will get response like /usr/sbin/lightdm. It looks like: $ cat /etc/X11/default-display-manager /usr/sbin/gdm3


6

You are missing a dependency required to run this program. Open the terminal and type: sudo apt install libgtk-3-dev Then compile the source code test.c with the following command: gcc-5 `pkg-config --cflags gtk+-3.0` -o test test.c `pkg-config --libs gtk+-3.0` I used gcc-5 instead of gcc-7 in Ubuntu 16.0-4 and test.c compiled successfully. In the ...


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