Solving issue #3531, assign classes to Gtk::Window and MyWidget
- Curve editor buttons are set to expand by default, but they are set to shrink as soon as an accompagnying widget is set to expand - White Balance's method button now has a centered ellipse ("...") - White Balance's buttons are now aligned on their right - A "withScrollbar" class is added to MyExpander if the ToolPanel's vertical scrollbar is visible. This can let you add padding space for the scrollbar (see #MyExpander.withScrollbar in RT default theme) - A "maximized" and "fullscreen" class is added to the RTWindow whenever it change state ; BEWARE: if you maximize the window then make it fullscreen, Gtk says that the window is in a "maximized & fullscreen" state, which mean that both class can be added at the same time to the window. One Gtk oddity (at least on Windows) is that you can make your window fullscreen and still drag it around by its header bar... That's not very practical to click on the unfullscreen button if in Single Editor mode with vertical Tab. I also managed to see the window in a Inconified + Maximized state. This part of Gtk doesn't seem very robust, on Windows at least.
This commit is contained in:
@@ -178,11 +178,8 @@ private:
|
||||
bool on_enter_leave_title (GdkEventCrossing* event);
|
||||
/// Used to handle the colored background for the Enable button
|
||||
bool on_enter_leave_enable (GdkEventCrossing* event);
|
||||
//GTK318
|
||||
#if GTK_MAJOR_VERSION == 3 && GTK_MINOR_VERSION < 20
|
||||
|
||||
void updateStyle();
|
||||
#endif
|
||||
//GTK318
|
||||
|
||||
protected:
|
||||
Gtk::Container* child; /// Gtk::Contained to display below the expander's title
|
||||
@@ -256,6 +253,8 @@ public:
|
||||
/// Add a Gtk::Container for the content of the expander
|
||||
/// Warning: do not manually Show/Hide the widget, because this parameter is handled by the click on the Expander's title
|
||||
void add (Gtk::Container& widget);
|
||||
|
||||
void updateVScrollbars(bool hide);
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user