aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svte.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/svte.c b/svte.c
index b99b564..bfe8d2a 100644
--- a/svte.c
+++ b/svte.c
@@ -121,13 +121,13 @@ static inline term* get_current_term(window *w){
static void launch_url(char *url) {
- g_spawn_command_line_async(g_strconcat(config->browser_command, " ", url, NULL), NULL);
+ g_spawn_command_line_async(g_strconcat(config->browser_command, " ", url, NULL), NULL);
}
static void zoom(gboolean b, struct term *t) {
int size = -2000;
- if(b)
+ if(b)
size = 2000;
PangoFontDescription *font = vte_terminal_get_font(VTE_TERMINAL(t->vte));
pango_font_description_set_size(font, pango_font_description_get_size(font) + size);
@@ -362,24 +362,24 @@ static void tab_title(GtkWidget *widget, term *t) {
/* set the window title */
static void set_window_title(term *t){
- gint number_of_pages = 0;
+ gint number_of_pages = 0;
const char *term_title = vte_terminal_get_window_title(VTE_TERMINAL(t->vte));
if (term_title == NULL) {
term_title = "svte";
}
- number_of_pages = gtk_notebook_get_n_pages(GTK_NOTEBOOK(t->w->notebook));
+ number_of_pages = gtk_notebook_get_n_pages(GTK_NOTEBOOK(t->w->notebook));
if ( number_of_pages > 1) {
- char *title = g_strdup_printf("%s (%d/%d)", term_title,
- gtk_notebook_page_num(GTK_NOTEBOOK(t->w->notebook), t->vte) + 1,
- number_of_pages);
- gtk_window_set_title(GTK_WINDOW(t->w->win), title);
- g_free(title);
- } else {
- gtk_window_set_title(GTK_WINDOW(t->w->win), term_title);
- }
+ char *title = g_strdup_printf("%s (%d/%d)", term_title,
+ gtk_notebook_page_num(GTK_NOTEBOOK(t->w->notebook), t->vte) + 1,
+ number_of_pages);
+ gtk_window_set_title(GTK_WINDOW(t->w->win), title);
+ g_free(title);
+ } else {
+ gtk_window_set_title(GTK_WINDOW(t->w->win), term_title);
+ }
}
/* focus the tab */