diff options
author | William Wold <[email protected]> | 2020-10-19 11:00:13 -0700 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-10-21 20:35:15 +0200 |
commit | c100c45640b7cc64f8ecca4cf4e1b0f77a637f3f (patch) | |
tree | 721a5cb83401085e93cabd2bda8a35fc1af85372 /applets | |
parent | b1e70ac3be6b843e75226d6db99b43b4c4d01cf1 (diff) | |
download | mate-panel-c100c45640b7cc64f8ecca4cf4e1b0f77a637f3f.tar.bz2 mate-panel-c100c45640b7cc64f8ecca4cf4e1b0f77a637f3f.tar.xz |
Show label about options not available on Wayland
Diffstat (limited to 'applets')
-rw-r--r-- | applets/wncklet/window-list.c | 4 | ||||
-rw-r--r-- | applets/wncklet/window-list.ui | 20 |
2 files changed, 22 insertions, 2 deletions
diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c index dd18fc72..6038400e 100644 --- a/applets/wncklet/window-list.c +++ b/applets/wncklet/window-list.c @@ -73,6 +73,7 @@ typedef struct { /* Properties: */ GtkWidget* properties_dialog; + GtkWidget* wayland_info_label; GtkWidget* show_current_radio; GtkWidget* show_all_radio; #ifdef HAVE_WINDOW_PREVIEWS @@ -959,6 +960,8 @@ static void setup_sensitivity(TasklistData* tasklist, GtkBuilder* builder, const #ifdef HAVE_WAYLAND static void setup_dialog_wayland(TasklistData* tasklist) { + gtk_widget_show(tasklist->wayland_info_label); + gtk_widget_set_sensitive(tasklist->window_list_content_box, FALSE); gtk_widget_set_sensitive(tasklist->window_grouping_box, FALSE); gtk_widget_set_sensitive(tasklist->minimized_windows_box, FALSE); @@ -976,6 +979,7 @@ static void setup_dialog(GtkBuilder* builder, TasklistData* tasklist) GtkAdjustment *adjustment; #endif /* HAVE_WINDOW_PREVIEWS */ + tasklist->wayland_info_label = WID("wayland_info_label"); tasklist->show_current_radio = WID("show_current_radio"); tasklist->show_all_radio = WID("show_all_radio"); diff --git a/applets/wncklet/window-list.ui b/applets/wncklet/window-list.ui index 2161d427..765b5b68 100644 --- a/applets/wncklet/window-list.ui +++ b/applets/wncklet/window-list.ui @@ -77,6 +77,22 @@ <property name="orientation">vertical</property> <property name="spacing">18</property> <child> + <object class="GtkLabel" id="wayland_info_label"> + <property name="visible">False</property> + <property name="can_focus">False</property> + <property name="label" translatable="yes">Some options not available on Wayland</property> + <property name="xalign">0</property> + <attributes> + <attribute name="weight" value="bold"/> + </attributes> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> <object class="GtkBox" id="window_list_content_box"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -154,7 +170,7 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">0</property> + <property name="position">1</property> </packing> </child> <child> @@ -270,7 +286,7 @@ <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">1</property> + <property name="position">2</property> </packing> </child> <child> |