Make GtkStatusIcon survive on Broadway
Make the X11 GtkStatusIcon implementation deal with multiple backends. https://bugzilla.gnome.org/show_bug.cgi?id=693066
This commit is contained in:
@ -840,6 +840,8 @@ gtk_status_icon_init (GtkStatusIcon *status_icon)
|
|||||||
priv->visible = TRUE;
|
priv->visible = TRUE;
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
if (GDK_IS_X11_DISPLAY (gdk_display_get_default ()))
|
||||||
|
{
|
||||||
priv->size = 0;
|
priv->size = 0;
|
||||||
priv->tray_icon = GTK_WIDGET (_gtk_tray_icon_new (NULL));
|
priv->tray_icon = GTK_WIDGET (_gtk_tray_icon_new (NULL));
|
||||||
|
|
||||||
@ -890,7 +892,7 @@ gtk_status_icon_init (GtkStatusIcon *status_icon)
|
|||||||
|
|
||||||
g_signal_connect_swapped (priv->image, "size-allocate",
|
g_signal_connect_swapped (priv->image, "size-allocate",
|
||||||
G_CALLBACK (gtk_status_icon_size_allocate), status_icon);
|
G_CALLBACK (gtk_status_icon_size_allocate), status_icon);
|
||||||
|
}
|
||||||
#else /* !GDK_WINDOWING_X11 */
|
#else /* !GDK_WINDOWING_X11 */
|
||||||
priv->dummy_widget = gtk_label_new ("");
|
priv->dummy_widget = gtk_label_new ("");
|
||||||
#endif
|
#endif
|
||||||
@ -974,7 +976,7 @@ gtk_status_icon_constructor (GType type,
|
|||||||
status_icon = GTK_STATUS_ICON (object);
|
status_icon = GTK_STATUS_ICON (object);
|
||||||
priv = status_icon->priv;
|
priv = status_icon->priv;
|
||||||
|
|
||||||
if (priv->visible)
|
if (priv->visible && priv->tray_icon)
|
||||||
gtk_widget_show (priv->tray_icon);
|
gtk_widget_show (priv->tray_icon);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -991,6 +993,8 @@ gtk_status_icon_finalize (GObject *object)
|
|||||||
g_clear_object (&priv->icon_helper);
|
g_clear_object (&priv->icon_helper);
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
if (priv->tray_icon)
|
||||||
|
{
|
||||||
g_signal_handlers_disconnect_by_func (priv->tray_icon,
|
g_signal_handlers_disconnect_by_func (priv->tray_icon,
|
||||||
gtk_status_icon_key_press, status_icon);
|
gtk_status_icon_key_press, status_icon);
|
||||||
g_signal_handlers_disconnect_by_func (priv->tray_icon,
|
g_signal_handlers_disconnect_by_func (priv->tray_icon,
|
||||||
@ -1019,6 +1023,7 @@ gtk_status_icon_finalize (GObject *object)
|
|||||||
gtk_status_icon_screen_changed, status_icon);
|
gtk_status_icon_screen_changed, status_icon);
|
||||||
gtk_widget_destroy (priv->image);
|
gtk_widget_destroy (priv->image);
|
||||||
gtk_widget_destroy (priv->tray_icon);
|
gtk_widget_destroy (priv->tray_icon);
|
||||||
|
}
|
||||||
#else /* !GDK_WINDOWING_X11 */
|
#else /* !GDK_WINDOWING_X11 */
|
||||||
gtk_widget_destroy (priv->dummy_widget);
|
gtk_widget_destroy (priv->dummy_widget);
|
||||||
#endif
|
#endif
|
||||||
@ -1131,7 +1136,10 @@ gtk_status_icon_get_property (GObject *object,
|
|||||||
break;
|
break;
|
||||||
case PROP_ORIENTATION:
|
case PROP_ORIENTATION:
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
if (status_icon->priv->tray_icon)
|
||||||
g_value_set_enum (value, _gtk_tray_icon_get_orientation (GTK_TRAY_ICON (status_icon->priv->tray_icon)));
|
g_value_set_enum (value, _gtk_tray_icon_get_orientation (GTK_TRAY_ICON (status_icon->priv->tray_icon)));
|
||||||
|
else
|
||||||
|
g_value_set_enum (value, GTK_ORIENTATION_HORIZONTAL);
|
||||||
#endif
|
#endif
|
||||||
#ifdef GDK_WINDOWING_WIN32
|
#ifdef GDK_WINDOWING_WIN32
|
||||||
g_value_set_enum (value, status_icon->priv->orientation);
|
g_value_set_enum (value, status_icon->priv->orientation);
|
||||||
@ -1362,6 +1370,9 @@ gtk_status_icon_update_image (GtkStatusIcon *status_icon)
|
|||||||
widget = priv->dummy_widget;
|
widget = priv->dummy_widget;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (widget == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
context = gtk_widget_get_style_context (widget);
|
context = gtk_widget_get_style_context (widget);
|
||||||
round_size = round_pixel_size (widget, priv->size);
|
round_size = round_pixel_size (widget, priv->size);
|
||||||
|
|
||||||
@ -1448,10 +1459,6 @@ gtk_status_icon_screen_changed (GtkStatusIcon *status_icon,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gtk_status_icon_padding_changed (GtkStatusIcon *status_icon)
|
gtk_status_icon_padding_changed (GtkStatusIcon *status_icon)
|
||||||
{
|
{
|
||||||
@ -1580,7 +1587,7 @@ gtk_status_icon_popup_menu (GtkStatusIcon *status_icon)
|
|||||||
emit_popup_menu_signal (status_icon, 0, gtk_get_current_event_time ());
|
emit_popup_menu_signal (status_icon, 0, gtk_get_current_event_time ());
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif /* GDK_WINDOWING_X11 */
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gtk_status_icon_button_press (GtkStatusIcon *status_icon,
|
gtk_status_icon_button_press (GtkStatusIcon *status_icon,
|
||||||
@ -1620,6 +1627,7 @@ gtk_status_icon_button_release (GtkStatusIcon *status_icon,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gtk_status_icon_scroll (GtkStatusIcon *status_icon,
|
gtk_status_icon_scroll (GtkStatusIcon *status_icon,
|
||||||
GdkEventScroll *event)
|
GdkEventScroll *event)
|
||||||
@ -1644,6 +1652,7 @@ gtk_status_icon_query_tooltip (GtkStatusIcon *status_icon,
|
|||||||
x, y, keyboard_tip, tooltip, &handled);
|
x, y, keyboard_tip, tooltip, &handled);
|
||||||
return handled;
|
return handled;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* GDK_WINDOWING_X11 */
|
#endif /* GDK_WINDOWING_X11 */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -2002,6 +2011,7 @@ gtk_status_icon_set_screen (GtkStatusIcon *status_icon,
|
|||||||
g_return_if_fail (GDK_IS_SCREEN (screen));
|
g_return_if_fail (GDK_IS_SCREEN (screen));
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
if (status_icon->priv->tray_icon)
|
||||||
gtk_window_set_screen (GTK_WINDOW (status_icon->priv->tray_icon), screen);
|
gtk_window_set_screen (GTK_WINDOW (status_icon->priv->tray_icon), screen);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -2022,10 +2032,11 @@ gtk_status_icon_get_screen (GtkStatusIcon *status_icon)
|
|||||||
g_return_val_if_fail (GTK_IS_STATUS_ICON (status_icon), NULL);
|
g_return_val_if_fail (GTK_IS_STATUS_ICON (status_icon), NULL);
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
if (status_icon->priv->tray_icon)
|
||||||
return gtk_window_get_screen (GTK_WINDOW (status_icon->priv->tray_icon));
|
return gtk_window_get_screen (GTK_WINDOW (status_icon->priv->tray_icon));
|
||||||
#else
|
else
|
||||||
return gdk_screen_get_default ();
|
|
||||||
#endif
|
#endif
|
||||||
|
return gdk_screen_get_default ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2054,6 +2065,8 @@ gtk_status_icon_set_visible (GtkStatusIcon *status_icon,
|
|||||||
priv->visible = visible;
|
priv->visible = visible;
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
if (priv->tray_icon)
|
||||||
|
{
|
||||||
if (visible)
|
if (visible)
|
||||||
gtk_widget_show (priv->tray_icon);
|
gtk_widget_show (priv->tray_icon);
|
||||||
else if (gtk_widget_get_realized (priv->tray_icon))
|
else if (gtk_widget_get_realized (priv->tray_icon))
|
||||||
@ -2061,6 +2074,7 @@ gtk_status_icon_set_visible (GtkStatusIcon *status_icon,
|
|||||||
gtk_widget_hide (priv->tray_icon);
|
gtk_widget_hide (priv->tray_icon);
|
||||||
gtk_widget_unrealize (priv->tray_icon);
|
gtk_widget_unrealize (priv->tray_icon);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef GDK_WINDOWING_WIN32
|
#ifdef GDK_WINDOWING_WIN32
|
||||||
if (priv->nid.hWnd != NULL)
|
if (priv->nid.hWnd != NULL)
|
||||||
@ -2116,16 +2130,11 @@ gtk_status_icon_get_visible (GtkStatusIcon *status_icon)
|
|||||||
gboolean
|
gboolean
|
||||||
gtk_status_icon_is_embedded (GtkStatusIcon *status_icon)
|
gtk_status_icon_is_embedded (GtkStatusIcon *status_icon)
|
||||||
{
|
{
|
||||||
#ifdef GDK_WINDOWING_X11
|
|
||||||
GtkPlug *plug;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
g_return_val_if_fail (GTK_IS_STATUS_ICON (status_icon), FALSE);
|
g_return_val_if_fail (GTK_IS_STATUS_ICON (status_icon), FALSE);
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
plug = GTK_PLUG (status_icon->priv->tray_icon);
|
if (status_icon->priv->tray_icon &&
|
||||||
|
gtk_plug_get_embedded (GTK_PLUG (status_icon->priv->tray_icon)))
|
||||||
if (gtk_plug_get_embedded (plug))
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
else
|
else
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -2161,9 +2170,9 @@ gtk_status_icon_position_menu (GtkMenu *menu,
|
|||||||
gpointer user_data)
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
GtkStatusIcon *status_icon = GTK_STATUS_ICON (user_data);
|
||||||
|
GtkStatusIconPrivate *priv = status_icon->priv;
|
||||||
GtkAllocation allocation;
|
GtkAllocation allocation;
|
||||||
GtkStatusIcon *status_icon;
|
|
||||||
GtkStatusIconPrivate *priv;
|
|
||||||
GtkTrayIcon *tray_icon;
|
GtkTrayIcon *tray_icon;
|
||||||
GtkWidget *widget;
|
GtkWidget *widget;
|
||||||
GdkScreen *screen;
|
GdkScreen *screen;
|
||||||
@ -2176,8 +2185,13 @@ gtk_status_icon_position_menu (GtkMenu *menu,
|
|||||||
g_return_if_fail (GTK_IS_MENU (menu));
|
g_return_if_fail (GTK_IS_MENU (menu));
|
||||||
g_return_if_fail (GTK_IS_STATUS_ICON (user_data));
|
g_return_if_fail (GTK_IS_STATUS_ICON (user_data));
|
||||||
|
|
||||||
status_icon = GTK_STATUS_ICON (user_data);
|
if (priv->tray_icon == NULL)
|
||||||
priv = status_icon->priv;
|
{
|
||||||
|
*x = 0;
|
||||||
|
*y = 0;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
tray_icon = GTK_TRAY_ICON (priv->tray_icon);
|
tray_icon = GTK_TRAY_ICON (priv->tray_icon);
|
||||||
widget = priv->tray_icon;
|
widget = priv->tray_icon;
|
||||||
|
|
||||||
@ -2307,14 +2321,16 @@ gtk_status_icon_get_geometry (GtkStatusIcon *status_icon,
|
|||||||
GtkOrientation *orientation)
|
GtkOrientation *orientation)
|
||||||
{
|
{
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
GtkStatusIconPrivate *priv = status_icon->priv;
|
||||||
GtkAllocation allocation;
|
GtkAllocation allocation;
|
||||||
GtkWidget *widget;
|
GtkWidget *widget;
|
||||||
GtkStatusIconPrivate *priv;
|
|
||||||
gint x, y;
|
gint x, y;
|
||||||
|
|
||||||
g_return_val_if_fail (GTK_IS_STATUS_ICON (status_icon), FALSE);
|
g_return_val_if_fail (GTK_IS_STATUS_ICON (status_icon), FALSE);
|
||||||
|
|
||||||
priv = status_icon->priv;
|
if (priv->tray_icon == NULL)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
widget = priv->tray_icon;
|
widget = priv->tray_icon;
|
||||||
|
|
||||||
if (screen)
|
if (screen)
|
||||||
@ -2362,6 +2378,7 @@ gtk_status_icon_set_has_tooltip (GtkStatusIcon *status_icon,
|
|||||||
priv = status_icon->priv;
|
priv = status_icon->priv;
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
if (priv->tray_icon)
|
||||||
gtk_widget_set_has_tooltip (priv->tray_icon, has_tooltip);
|
gtk_widget_set_has_tooltip (priv->tray_icon, has_tooltip);
|
||||||
#endif
|
#endif
|
||||||
#ifdef GDK_WINDOWING_WIN32
|
#ifdef GDK_WINDOWING_WIN32
|
||||||
@ -2396,6 +2413,7 @@ gtk_status_icon_get_has_tooltip (GtkStatusIcon *status_icon)
|
|||||||
priv = status_icon->priv;
|
priv = status_icon->priv;
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
if (priv->tray_icon)
|
||||||
has_tooltip = gtk_widget_get_has_tooltip (priv->tray_icon);
|
has_tooltip = gtk_widget_get_has_tooltip (priv->tray_icon);
|
||||||
#endif
|
#endif
|
||||||
#ifdef GDK_WINDOWING_WIN32
|
#ifdef GDK_WINDOWING_WIN32
|
||||||
@ -2435,9 +2453,8 @@ gtk_status_icon_set_tooltip_text (GtkStatusIcon *status_icon,
|
|||||||
priv = status_icon->priv;
|
priv = status_icon->priv;
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
if (priv->tray_icon)
|
||||||
gtk_widget_set_tooltip_text (priv->tray_icon, text);
|
gtk_widget_set_tooltip_text (priv->tray_icon, text);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef GDK_WINDOWING_WIN32
|
#ifdef GDK_WINDOWING_WIN32
|
||||||
if (text == NULL)
|
if (text == NULL)
|
||||||
@ -2490,6 +2507,7 @@ gtk_status_icon_get_tooltip_text (GtkStatusIcon *status_icon)
|
|||||||
priv = status_icon->priv;
|
priv = status_icon->priv;
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
if (priv->tray_icon)
|
||||||
tooltip_text = gtk_widget_get_tooltip_text (priv->tray_icon);
|
tooltip_text = gtk_widget_get_tooltip_text (priv->tray_icon);
|
||||||
#endif
|
#endif
|
||||||
#ifdef GDK_WINDOWING_WIN32
|
#ifdef GDK_WINDOWING_WIN32
|
||||||
@ -2534,6 +2552,7 @@ gtk_status_icon_set_tooltip_markup (GtkStatusIcon *status_icon,
|
|||||||
priv = status_icon->priv;
|
priv = status_icon->priv;
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
if (priv->tray_icon)
|
||||||
gtk_widget_set_tooltip_markup (priv->tray_icon, markup);
|
gtk_widget_set_tooltip_markup (priv->tray_icon, markup);
|
||||||
#endif
|
#endif
|
||||||
#ifdef GDK_WINDOWING_WIN32
|
#ifdef GDK_WINDOWING_WIN32
|
||||||
@ -2572,6 +2591,7 @@ gtk_status_icon_get_tooltip_markup (GtkStatusIcon *status_icon)
|
|||||||
priv = status_icon->priv;
|
priv = status_icon->priv;
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
if (priv->tray_icon)
|
||||||
markup = gtk_widget_get_tooltip_markup (priv->tray_icon);
|
markup = gtk_widget_get_tooltip_markup (priv->tray_icon);
|
||||||
#endif
|
#endif
|
||||||
#ifdef GDK_WINDOWING_WIN32
|
#ifdef GDK_WINDOWING_WIN32
|
||||||
@ -2610,11 +2630,14 @@ guint32
|
|||||||
gtk_status_icon_get_x11_window_id (GtkStatusIcon *status_icon)
|
gtk_status_icon_get_x11_window_id (GtkStatusIcon *status_icon)
|
||||||
{
|
{
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
if (status_icon->priv->tray_icon)
|
||||||
|
{
|
||||||
gtk_widget_realize (GTK_WIDGET (status_icon->priv->tray_icon));
|
gtk_widget_realize (GTK_WIDGET (status_icon->priv->tray_icon));
|
||||||
return GDK_WINDOW_XID (gtk_widget_get_window (GTK_WIDGET (status_icon->priv->tray_icon)));
|
return GDK_WINDOW_XID (gtk_widget_get_window (GTK_WIDGET (status_icon->priv->tray_icon)));
|
||||||
#else
|
}
|
||||||
return 0;
|
else
|
||||||
#endif
|
#endif
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2640,6 +2663,7 @@ gtk_status_icon_set_title (GtkStatusIcon *status_icon,
|
|||||||
priv = status_icon->priv;
|
priv = status_icon->priv;
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
if (priv->tray_icon)
|
||||||
gtk_window_set_title (GTK_WINDOW (priv->tray_icon), title);
|
gtk_window_set_title (GTK_WINDOW (priv->tray_icon), title);
|
||||||
#endif
|
#endif
|
||||||
#ifdef GDK_WINDOWING_QUARTZ
|
#ifdef GDK_WINDOWING_QUARTZ
|
||||||
@ -2668,20 +2692,24 @@ const gchar *
|
|||||||
gtk_status_icon_get_title (GtkStatusIcon *status_icon)
|
gtk_status_icon_get_title (GtkStatusIcon *status_icon)
|
||||||
{
|
{
|
||||||
GtkStatusIconPrivate *priv;
|
GtkStatusIconPrivate *priv;
|
||||||
|
const gchar *title = NULL;
|
||||||
|
|
||||||
g_return_val_if_fail (GTK_IS_STATUS_ICON (status_icon), NULL);
|
g_return_val_if_fail (GTK_IS_STATUS_ICON (status_icon), NULL);
|
||||||
|
|
||||||
priv = status_icon->priv;
|
priv = status_icon->priv;
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
return gtk_window_get_title (GTK_WINDOW (priv->tray_icon));
|
if (priv->tray_icon)
|
||||||
|
title = gtk_window_get_title (GTK_WINDOW (priv->tray_icon));
|
||||||
#endif
|
#endif
|
||||||
#ifdef GDK_WINDOWING_QUARTZ
|
#ifdef GDK_WINDOWING_QUARTZ
|
||||||
return priv->title;
|
title = priv->title;
|
||||||
#endif
|
#endif
|
||||||
#ifdef GDK_WINDOWING_WIN32
|
#ifdef GDK_WINDOWING_WIN32
|
||||||
return priv->title;
|
title = priv->title;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
return title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -2708,6 +2736,8 @@ gtk_status_icon_set_name (GtkStatusIcon *status_icon,
|
|||||||
priv = status_icon->priv;
|
priv = status_icon->priv;
|
||||||
|
|
||||||
#ifdef GDK_WINDOWING_X11
|
#ifdef GDK_WINDOWING_X11
|
||||||
|
if (priv->tray_icon)
|
||||||
|
{
|
||||||
if (gtk_widget_get_realized (priv->tray_icon))
|
if (gtk_widget_get_realized (priv->tray_icon))
|
||||||
{
|
{
|
||||||
/* gtk_window_set_wmclass() only operates on non-realized windows,
|
/* gtk_window_set_wmclass() only operates on non-realized windows,
|
||||||
@ -2720,5 +2750,6 @@ gtk_status_icon_set_name (GtkStatusIcon *status_icon,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
gtk_window_set_wmclass (GTK_WINDOW (priv->tray_icon), name, name);
|
gtk_window_set_wmclass (GTK_WINDOW (priv->tray_icon), name, name);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user