gnome-terminal r2744 - trunk/src
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-terminal r2744 - trunk/src
- Date: Thu, 29 May 2008 19:50:13 +0000 (UTC)
Author: chpe
Date: Thu May 29 19:50:13 2008
New Revision: 2744
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=2744&view=rev
Log:
Fix some FIXMEs.
Modified:
trunk/src/terminal-window.c
Modified: trunk/src/terminal-window.c
==============================================================================
--- trunk/src/terminal-window.c (original)
+++ trunk/src/terminal-window.c Thu May 29 19:50:13 2008
@@ -1877,7 +1877,6 @@
}
}
-/* FIXMEchpe make this also switch tabs! */
void
terminal_window_set_active (TerminalWindow *window,
TerminalScreen *screen)
@@ -2484,13 +2483,11 @@
return;
current = terminal_screen_get_font_scale (priv->active_term);
-
- /* FIXMEchpe! this should be unnecessary! */
- if (find_larger_zoom_factor (current, ¤t))
- {
- terminal_screen_set_font_scale (priv->active_term, current);
- terminal_window_update_zoom_sensitivity (window);
- }
+ if (!find_larger_zoom_factor (current, ¤t))
+ return;
+
+ terminal_screen_set_font_scale (priv->active_term, current);
+ terminal_window_update_zoom_sensitivity (window);
}
static void
@@ -2504,13 +2501,11 @@
return;
current = terminal_screen_get_font_scale (priv->active_term);
-
- /* FIXMEchpe! this should be unnecessary! */
- if (find_smaller_zoom_factor (current, ¤t))
- {
- terminal_screen_set_font_scale (priv->active_term, current);
- terminal_window_update_zoom_sensitivity (window);
- }
+ if (!find_smaller_zoom_factor (current, ¤t))
+ return;
+
+ terminal_screen_set_font_scale (priv->active_term, current);
+ terminal_window_update_zoom_sensitivity (window);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]