Skip to content

Commit c0d7692

Browse files
committed
fix tooltip
1 parent fe9626d commit c0d7692

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Window.vala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class AppWindow : Gtk.Window {
4545
actions_box.append (open_button);
4646
actions_box.append (save_as_button);
4747

48-
var header = new Gtk.HeaderBar () {
48+
header = new Gtk.HeaderBar () {
4949
show_title_buttons = true,
5050
tooltip_text = ""
5151
};
@@ -104,7 +104,7 @@ public class AppWindow : Gtk.Window {
104104

105105
this.file = file;
106106
this.file_name = file.get_basename ();
107-
this.tooltip_text = file.get_path ();
107+
header.tooltip_text = file.get_path ();
108108

109109
} catch (Error err) {
110110
warning ("Couldn't open file: %s", err.message);
@@ -154,7 +154,7 @@ public class AppWindow : Gtk.Window {
154154

155155
this.file = file;
156156
file_name = file.get_basename ();
157-
this.tooltip_text = file.get_path ();
157+
header.tooltip_text = file.get_path ();
158158

159159
if ((is_unsaved_doc) && (oldfile != file)) {
160160
oldfile.delete ();

0 commit comments

Comments
 (0)