Skip to content

Commit

Permalink
Fix for compilation errors
Browse files Browse the repository at this point in the history
Issue #16
  • Loading branch information
gabrielfin authored and flexiondotorg committed Jun 19, 2019
1 parent 8846be9 commit 9698039
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions window-buttons-applet/window-buttons-applet.vala
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace WindowButtonsApplet{
this.set_homogeneous(true);

this.applet_style_context = applet_style_context;

this.change_layout();
this.change_theme();
this.change_spacing();
Expand Down Expand Up @@ -179,15 +179,15 @@ namespace WindowButtonsApplet{
CLOSE.icon_size = size;
if(this.enabled_buttons.close == true)
CLOSE.reload();

MINIMIZE.icon_size = size;
if(this.enabled_buttons.minimize == true)
MINIMIZE.reload();

MAXIMIZE.icon_size = size;
if(this.enabled_buttons.maximize == true)
MAXIMIZE.reload();

}

public void change_orient(int orient){
Expand Down Expand Up @@ -222,7 +222,7 @@ namespace WindowButtonsApplet{
win = null;
break;
case "topmost-maximized":
List<Wnck.Window*> windows = Wnck.Screen.get_default().get_windows_stacked().copy();
List<weak Wnck.Window> windows = Wnck.Screen.get_default().get_windows_stacked().copy();
windows.reverse();
foreach(Wnck.Window* w in windows) {
if(w->is_maximized() && !w->is_minimized()){
Expand Down
6 changes: 3 additions & 3 deletions window-menu-applet/window-menu-applet.vala
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ namespace WindowMenuApplet{
reload();

}

private Wnck.Window get_current_window(){
Wnck.Window* win = null;
string behaviour = gsettings.get_string("behaviour");
Expand All @@ -81,7 +81,7 @@ namespace WindowMenuApplet{
win = null;
break;
case "topmost-maximized":
List<Wnck.Window*> windows = Wnck.Screen.get_default().get_windows_stacked().copy();
List<weak Wnck.Window> windows = Wnck.Screen.get_default().get_windows_stacked().copy();
windows.reverse();
foreach(Wnck.Window* w in windows) {
if(w->is_maximized() && !w->is_minimized()){
Expand Down Expand Up @@ -134,7 +134,7 @@ namespace WindowMenuApplet{

gsettings.bind("behaviour",builder.get_object("behaviour"),"active_id",SettingsBindFlags.DEFAULT);
gsettings.changed["behaviour"].connect( (key) => { reload(); } );

applet.add(button);
applet.setup_menu(menu,action_group);

Expand Down
6 changes: 3 additions & 3 deletions window-title-applet/window-title-applet.vala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace WindowTitleApplet{
GLib.Settings gsettings;

public void reload(){

// Disconnect signals from old window
if(window != null){
window->name_changed.disconnect(update);
Expand Down Expand Up @@ -64,7 +64,7 @@ namespace WindowTitleApplet{
win = null;
break;
case "topmost-maximized":
List<Wnck.Window*> windows = Wnck.Screen.get_default().get_windows_stacked().copy();
List<weak Wnck.Window> windows = Wnck.Screen.get_default().get_windows_stacked().copy();
windows.reverse();
foreach(Wnck.Window* w in windows) {
if(w->is_maximized() && !w->is_minimized()){
Expand All @@ -77,7 +77,7 @@ namespace WindowTitleApplet{

return win;
}

private void clicked(Gdk.EventButton *event){
if(window != null){
window->activate(Gtk.get_current_event_time());
Expand Down

0 comments on commit 9698039

Please sign in to comment.