summaryrefslogtreecommitdiff
path: root/src/terminal-window.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-02-17 10:59:47 +0100
committerStefano Karapetsas <[email protected]>2014-02-17 10:59:47 +0100
commit43895e3aa9292d6e7a429126527cc43f50b93483 (patch)
tree248c9f73e9e9ae30c4714127aa29774bdcfc52b5 /src/terminal-window.c
parentdafab9dd2196739bf283ac0207a60168734e3105 (diff)
parentd6483a80a9eef3a9ba4ea1394558ebbaa39a7cbe (diff)
downloadmate-terminal-43895e3aa9292d6e7a429126527cc43f50b93483.tar.bz2
mate-terminal-43895e3aa9292d6e7a429126527cc43f50b93483.tar.xz
Merge pull request #55 from markbt/warnings
Fix some warnings.
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 4777a06..33f1180 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -1175,12 +1175,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);
@@ -2513,7 +2511,6 @@ close_button_clicked_cb (GtkWidget *tab_label,
{
GtkWidget *toplevel;
TerminalWindow *window;
- TerminalWindowPrivate *priv;
TerminalScreen *screen;
toplevel = gtk_widget_get_toplevel (screen_container);
@@ -2524,7 +2521,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))
@@ -2879,7 +2875,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;
@@ -2925,8 +2920,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 */
@@ -3844,7 +3837,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;
@@ -4010,7 +4003,6 @@ tabs_next_or_previous_tab_cb (GtkAction *action,
{
TerminalWindowPrivate *priv = window->priv;
GtkNotebookClass *klass;
- GtkBindingSet *binding_set;
const char *name;
guint keyval = 0;
@@ -4025,7 +4017,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,