- commit
- c47f3000c99fc77828006b1a7fdb126887e43eda
- parent
- 54f47cc8159a92814b146ae1231d9e9faa006907
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2024-10-25 15:38
adapt to vte 0.78
Diffstat
| M | xiterm.c | 8 | ++++---- |
1 files changed, 4 insertions, 4 deletions
diff --git a/xiterm.c b/xiterm.c
@@ -46,7 +46,7 @@ void on_term_title(VteTerminal *term, gpointer user_data) {
46 46 const char *title;
47 47 GtkWidget *label;
48 48
49 -1 title = vte_terminal_get_window_title(term);
-1 49 title = vte_terminal_get_termprop_string_by_id(term, VTE_PROPERTY_ID_XTERM_TITLE, NULL);
50 50 label = gtk_notebook_get_tab_label(notebook, GTK_WIDGET(term));
51 51 gtk_label_set_text(GTK_LABEL(label), title);
52 52 }
@@ -90,12 +90,12 @@ VteTerminal *get_current_term(void) {
90 90
91 91 const char* get_cwd(VteTerminal *term) {
92 92 // only works if /etc/profile.d/vte-2.91.sh was sourced in .bashrc
93 -1 const char *uri;
-1 93 GUri *uri;
94 94
95 95 if (term != NULL) {
96 -1 uri = vte_terminal_get_current_directory_uri(term);
-1 96 uri = vte_terminal_ref_termprop_uri_by_id(term, VTE_PROPERTY_ID_CURRENT_DIRECTORY_URI);
97 97 if (uri != NULL) {
98 -1 return g_filename_from_uri(uri, NULL, NULL);
-1 98 return g_filename_from_uri(g_uri_to_string(uri), NULL, NULL);
99 99 }
100 100 }
101 101