--- a/wms/meson.build Fri Nov 30 01:40:38 2018 -0500
+++ b/wms/meson.build Fri Nov 30 18:17:33 2018 -0600
@@ -5,10 +5,7 @@
install : true, install_dir : plugindir)
- # These custom wms depend on libpurple
- s = library('s', 's.c',
- dependencies : [ncurses, gobject, libgnt_dep, libpurple_dep],
- install : true, install_dir : plugindir)
+ dependencies : [ncurses, gobject, libgnt_dep], + install : true, install_dir : plugindir) --- a/wms/s.c Fri Nov 30 01:40:38 2018 -0500
+++ b/wms/s.c Fri Nov 30 18:17:33 2018 -0600
@@ -20,7 +20,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#include "gntinternal.h" @@ -33,8 +33,6 @@
#define TYPE_S (s_get_type())
@@ -188,14 +186,12 @@
-toggle_buddylist(GntBindable *bindable, GList *null)
+raise_buddylist(GntBindable *bindable, GList *null) GntWM *wm = GNT_WM(bindable);
GntWidget *blist = find_widget(wm, "buddylist");
- gnt_widget_destroy(blist);
+ gnt_wm_raise_window(wm, blist); @@ -211,8 +207,8 @@
pclass->window_update = s_window_update;
pclass->mouse_clicked = s_mouse_clicked;
- gnt_bindable_class_register_action(GNT_BINDABLE_CLASS(klass), "toggle-buddylist",
- toggle_buddylist, "\033" "b", NULL);
+ gnt_bindable_class_register_action(GNT_BINDABLE_CLASS(klass), + "raise-buddylist", raise_buddylist, "\033" "b", NULL); gnt_style_read_actions(G_OBJECT_CLASS_TYPE(klass), GNT_BINDABLE_CLASS(klass));