1 Commits

Author SHA1 Message Date
009c17b6e2 Attempt to transition to Vala 2016-04-27 21:13:30 +02:00
3 changed files with 29 additions and 3 deletions

13
src/ag-header-bar.vala Normal file
View File

@@ -0,0 +1,13 @@
namespace Ag {
class HeaderBar: Gtk.HeaderBar {
public void clear()
{
custom_title = null;
foreach (Gtk.Widget w in get_children()) {
w.hide();
}
}
}
}

View File

@@ -1120,10 +1120,10 @@ ag_window_save_action(GSimpleAction *action,
_("Unable to save: %s"),
err->message
);
} else {
ag_db_chart_save_unref(priv->saved_data);
priv->saved_data = save_data;
}
ag_db_chart_save_unref(priv->saved_data);
priv->saved_data = save_data;
}
}

13
src/widgets.vala Normal file
View File

@@ -0,0 +1,13 @@
namespace Ag {
public class HeaderBar : Gtk.HeaderBar {
public void clear()
{
custom_title = null;
foreach (Gtk.Widget w in get_children()) {
w.hide();
}
}
}
}