summaryrefslogtreecommitdiff
path: root/src/ui/fixedtip.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/fixedtip.c')
-rw-r--r--src/ui/fixedtip.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ui/fixedtip.c b/src/ui/fixedtip.c
index 5030a99a..1d2f5f09 100644
--- a/src/ui/fixedtip.c
+++ b/src/ui/fixedtip.c
@@ -2,9 +2,9 @@
/* Metacity fixed tooltip routine */
-/*
+/*
* Copyright (C) 2001 Havoc Pennington
- *
+ *
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
@@ -14,7 +14,7 @@
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
@@ -71,9 +71,9 @@ meta_fixed_tip_show (int screen_number,
const char *markup_text)
{
int w, h;
-
+
if (tip == NULL)
- {
+ {
tip = gtk_window_new (GTK_WINDOW_POPUP);
gtk_window_set_type_hint (GTK_WINDOW(tip), GDK_WINDOW_TYPE_HINT_TOOLTIP);
@@ -91,7 +91,7 @@ meta_fixed_tip_show (int screen_number,
screen_right_edge = monitor.x + monitor.width;
screen_bottom_edge = monitor.y + monitor.height;
}
-
+
gtk_widget_set_app_paintable (tip, TRUE);
gtk_window_set_resizable (GTK_WINDOW (tip), FALSE);
gtk_widget_set_name (tip, "gtk-tooltips");
@@ -105,7 +105,7 @@ meta_fixed_tip_show (int screen_number,
gtk_widget_set_halign (label, GTK_ALIGN_CENTER);
gtk_widget_set_valign (label, GTK_ALIGN_CENTER);
gtk_widget_show (label);
-
+
gtk_container_add (GTK_CONTAINER (tip), label);
g_signal_connect (tip, "destroy",
@@ -113,7 +113,7 @@ meta_fixed_tip_show (int screen_number,
}
gtk_label_set_markup (GTK_LABEL (label), markup_text);
-
+
gtk_window_get_size (GTK_WINDOW (tip), &w, &h);
if (meta_ui_get_direction() == META_UI_DIRECTION_RTL)
@@ -121,7 +121,7 @@ meta_fixed_tip_show (int screen_number,
if ((root_x + w) > screen_right_edge)
root_x -= (root_x + w) - screen_right_edge;
-
+
gtk_window_move (GTK_WINDOW (tip), root_x, root_y);
gtk_widget_show (tip);