summaryrefslogtreecommitdiff
path: root/src/terminal-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/terminal-window.c')
-rw-r--r--src/terminal-window.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 33ac03c..43333bf 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -1178,12 +1178,10 @@ handle_tab_droped_on_desktop (GtkNotebook *source_notebook,
gint y,
gpointer data)
{
- TerminalScreen *screen;
TerminalWindow *source_window;
TerminalWindow *new_window;
TerminalWindowPrivate *new_priv;
- screen = terminal_screen_container_get_screen (TERMINAL_SCREEN_CONTAINER (container));
source_window = TERMINAL_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (source_notebook)));
g_return_val_if_fail (TERMINAL_IS_WINDOW (source_window), NULL);
@@ -2525,7 +2523,6 @@ close_button_clicked_cb (GtkWidget *tab_label,
{
GtkWidget *toplevel;
TerminalWindow *window;
- TerminalWindowPrivate *priv;
TerminalScreen *screen;
toplevel = gtk_widget_get_toplevel (screen_container);
@@ -2536,7 +2533,6 @@ close_button_clicked_cb (GtkWidget *tab_label,
return;
window = TERMINAL_WINDOW (toplevel);
- priv = window->priv;
screen = terminal_screen_container_get_screen (TERMINAL_SCREEN_CONTAINER (screen_container));
if (confirm_close_window_or_tab (window, screen))
@@ -2891,7 +2887,6 @@ notebook_page_selected_callback (GtkWidget *notebook,
TerminalWindowPrivate *priv = window->priv;
GtkWidget *widget;
TerminalScreen *screen;
- TerminalProfile *profile;
int old_grid_width, old_grid_height;
#if !GTK_CHECK_VERSION (2, 90, 6)
GtkWidget *page_widget;
@@ -2937,8 +2932,6 @@ notebook_page_selected_callback (GtkWidget *notebook,
/* Make sure that the widget is no longer hidden due to the workaround */
gtk_widget_show (widget);
- profile = terminal_screen_get_profile (screen);
-
priv->active_screen = screen;
/* Override menubar setting if it wasn't restored from session */
@@ -3856,7 +3849,7 @@ terminal_next_or_previous_profile_cb (GtkAction *action,
TerminalWindow *window)
{
TerminalWindowPrivate *priv = window->priv;
- TerminalProfile *active_profile, *new_profile;
+ TerminalProfile *active_profile, *new_profile = NULL;
GList *profiles, *p;
const char *name;
@@ -4022,7 +4015,6 @@ tabs_next_or_previous_tab_cb (GtkAction *action,
{
TerminalWindowPrivate *priv = window->priv;
GtkNotebookClass *klass;
- GtkBindingSet *binding_set;
const char *name;
guint keyval = 0;
@@ -4037,7 +4029,6 @@ tabs_next_or_previous_tab_cb (GtkAction *action,
}
klass = GTK_NOTEBOOK_GET_CLASS (GTK_NOTEBOOK (priv->notebook));
- binding_set = gtk_binding_set_by_class (klass);
gtk_binding_set_activate (gtk_binding_set_by_class (klass),
keyval,
GDK_CONTROL_MASK,