aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2013-11-07 11:28:59 -0500
committerCalvin Morrison <mutantturkey@gmail.com>2013-11-07 11:28:59 -0500
commit6733138c552f4e8418cc76c2311c1bda72466f2e (patch)
tree308b08160c35cc52d1eb0d2d668557d5d19033de
parent9e2f6886fcfb2ec0eff9406709f1dd21c8f035a6 (diff)
fix tabs and spacesHEADv1.0master
-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 */