Graphical changes after gtk_widget_set_sensitive() - widget

I need to know what (graphically) happens to a button which is assigned to the "disabled" status with a gtk_widget_set_sensitive() function.
I am not the programmer but am documenting the behavior of a tool, built with Gtk+, which buttons are eventually disabled by the programmer by issuing that gtk_widget_set_sensitive() function (I am told). For my documentation, I need to emulate the visual result on the original icon once deactivated but I have no clue on what happens to it. It becomes brighter, blurry? desaturated? other?
Where can I find sources / hints on that?
what follow are caps of the two different (visual) statuses of such a button.
Enabled
Disabled

This is the the documentation from Gtk 1.
Insensitive widgets are “grayed out” and the user can’t interact with them. Insensitive widgets are known as “inactive”, “disabled”, or “ghosted” in some other toolkits.
How does disabled widget look like depends on the theme being used. You can install custom themes in Gnome desktop. I have two screenshot taken with "adwaita" and "adwaita-dark" theme.
Themes can be defined with CSS file. This is repo for adwaita theme. https://github.com/GNOME/gtk/tree/master/gtk/theme/Adwaita. You can search button, insensitive and disabled to find out what colors are being used.
To find the exact color used, you can find it
https://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-set-sensitive

Related

Bin Icon is Gone From the Panel in Visual Studio Code

In Visual Studio Code, there was previously a trash image (icon) in the panel section. When I clicked on it the terminal was clearing. But it no longer exists. I changed accidently panel settings. For solving, I clearing settings.json folder but still same. Why does it never revert back to its old settings?
The Trash-bin Icon is Still Very Much Present in Your Editor
"The other solutions here, though no wrong in what they say, are not good solutions. The icon is still present if you know where to look, and you didn't accidentally change your settings. In the last VSCode update — "the May-2021 Update (v1.57.1)" — the VS-Code team added support for the new feature, "Terminal Tabs", which does more than add terminal-tabs, it offers users an entire new UI to use. It also switched the configurations of millions of unexpected VSCode users, so that the new UI was auto-equipped. In all fairness you are not the first person to wonder where the "Trash-bin Icon" went. I answered another question, 2 weeks ago, asking about the drop-down that is no longer visible."
You have two options available to you.
You can, keep the new UI the way it is, and below is a picture that shows where the new terminal tab trash-bin icon is.
Or you can switch back to the old UI using the setting bellow:
terminal.integrated.tabs.enabled: (true/false)
Image shows "terminal.integrated.tabs.enabled": false, and where the trash icon is. It is important to note that the icon auto hides, and one must scroll over it before it reveals itself.
Image shows "terminal.integrated.tabs.enabled": true, and where the trash icon is located using the old UI. I think its fair to note, the new UI was created to make VSCode better. People use to download extensions to get the same terminal tabs that the new UI offers.

Why is Sublime Text context menu disabled (image below)

I have installed HTML-CSS-JS Prettify package in Sublime Text 3 (on Ubuntu 18.4).
The image below shows that it appears on the context menu. However, when I select its context menu (the second context menu) has all options greyed out. I can't find a explanation anywhere and would appreciate knowing how to enable it.
If it is any use the "Anaconda" selection is also all greyed out when I select it. Nodejs is not.
Many thanks.
Menu items appear disabled for a couple of different reasons.
The first (and most common) is that when a menu is about to be displayed, Sublime asks every command bound to an item available in the menu if it should be enabled right now or not, and the command can decide to disable itself if it currently doesn't apply.
The second reason is that the command bound to the menu item is currently missing. For people using packages and not creating them themselves, that generally means that there's something wrong with the plugin that provides the command, such as it not loading for some reason.
In this case, based on the items in there it seems more likely that the second case is what's getting you here.
In order to check that, use View > Show Console or the associated key binding and see if there are any messages that look like a package didn't load for some reason. If so, resolving whatever issue that is should get things working.

Webstorm / PHPstorm switcher

I have a love-hate relationship with Webstorm (currently using 8.0.4).
One of the things I dislike is the fact that Alt+Tab / Alt+Shift+Tab shortcuts seem to use the most-recently-used tab order.
The other thing I dislike is that the Alt+Shift+Tab shortcut always switches to a non-source file tab (TODO, Favorite, Project structure tab...).
I've tried googling as well as configuring the "Switcher" component in the options, but it seems I can only change the shortcuts, not the actual behaviour.
Does anyone know how I could configure the Switcher component to my liking?
I can live with the MRU tab order, but I absolutely detest the non-source tabs in the tab order. How can I remove them from the Switcher list?

How to have the Sublime Text console showing color instead of the color codes

I have a build system output in the console. However it is showing color code instead of the actual colorized text.
[37;46;1mTest file: static/tests/casperjs/login/test.js
How can I apply a color theme to the console output?
Thanks!
Unfortunately sublime doesn't support this. I ended up writing a plugin that parses the output and converts it into a colored version (for a subset of colors, ones we use in our testing framework).
If you would like to look into that, or if anyone stumbles upon this in future here are some tips..
I detect output in the plugin with an on_modified event listener and a view
with no name (view.name()). This does not uniquely identify the output pane
so you'll have to do a bit more than that, I found no other easy way (unless
you want to hook into your build plugin and act directly on the view it generates).
To make the color changes, I remove the color codes (view.erase()) and add color to the
regions marked by those codes with view.add_regions(). The colors I add are
ones I manually insert into a custom theme, as again there seems to be no
other way. Also, for some reason it seems you can't add a color with the
exact background of the active theme (it inverts it or something), so I set
the color's backgrounds to something just different.
As you can tell, it's a hacky, ad hoc solution, otherwise I would release it on Github.
You can also check out SublimeREPL, it does console text coloring

IntelliJ navigation

I'm using IntelliJ to do Java Development for an application where we use JSF in a few places. In the .jsp file I have defined my backing class and the code runs properly.
My question is: How do I set up my environment so that when I center click on the method names, which use EL format, IntelliJ navigates to the proper method in the proper class.
Having taken a quick look at my IntelliJ install, if you go to File->Settings, there should be a keymap section under the IDE Settings header. Make a new keymap profile other than default. You can probably just copy the default and give it a new name. In the actions window, open Main Menu->Go To and there should be an action called "Implementation(s)". The description of this action seems to match what you are looking for. Click Add Mouse Shortcut, and center click in the click pad area to set it. I didn't want to actually change my settings, so I didn't finish the steps myself, but this should do what you are wanting to do. It may warn you that you are overwriting a shortcut to another action, so be aware of that.
Hope this helps.
This is using IntelliJ Version 9 beta.
in JSP I am using something like this
<%--#elvariable id="owner" type="com.mysite.data.Owner"--%>
This is a comment specific for intellij I guess. In this way when the owner variable is used anywhere like:
${owner.name}
is known to intellij that is of a Owner type. Intellij then automatically go to the class definition by pressing CTRL+B or middle mouse button.
This is working with intellij idea 9 beta and I remember that this feature was broken in 8.1.1. Prob it is working again in 8.1.x
Probably the same approch will also work for JSF.