mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-05-16 13:40:18 +00:00
Compare commits
2 Commits
0052b6589e
...
b9ff051043
| Author | SHA1 | Date | |
|---|---|---|---|
| b9ff051043 | |||
| 10b6d5927b |
@@ -744,9 +744,9 @@ cv_tabs_add (chanview *cv, chan *ch, char *name, GtkTreeIter *parent)
|
|||||||
|
|
||||||
but = gtk_toggle_button_new ();
|
but = gtk_toggle_button_new ();
|
||||||
gtk_widget_set_name (but, "zoitechat-tab");
|
gtk_widget_set_name (but, "zoitechat-tab");
|
||||||
gtk_widget_set_size_request (but, -1, 18);
|
gtk_widget_set_size_request (but, -1, 14);
|
||||||
gtk_widget_add_events (but, GDK_POINTER_MOTION_MASK | GDK_LEAVE_NOTIFY_MASK);
|
gtk_widget_add_events (but, GDK_POINTER_MOTION_MASK | GDK_LEAVE_NOTIFY_MASK);
|
||||||
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
|
hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 2);
|
||||||
label = gtk_label_new (name);
|
label = gtk_label_new (name);
|
||||||
close_button = gtk_button_new ();
|
close_button = gtk_button_new ();
|
||||||
gtk_style_context_add_class (gtk_widget_get_style_context (close_button), "flat");
|
gtk_style_context_add_class (gtk_widget_get_style_context (close_button), "flat");
|
||||||
@@ -755,8 +755,8 @@ cv_tabs_add (chanview *cv, chan *ch, char *name, GtkTreeIter *parent)
|
|||||||
gtk_button_set_always_show_image (GTK_BUTTON (close_button), TRUE);
|
gtk_button_set_always_show_image (GTK_BUTTON (close_button), TRUE);
|
||||||
gtk_widget_set_can_focus (close_button, FALSE);
|
gtk_widget_set_can_focus (close_button, FALSE);
|
||||||
gtk_container_add (GTK_CONTAINER (close_button), close_icon);
|
gtk_container_add (GTK_CONTAINER (close_button), close_icon);
|
||||||
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (hbox), label, TRUE, TRUE, 0);
|
||||||
gtk_box_pack_start (GTK_BOX (hbox), close_button, FALSE, FALSE, 0);
|
gtk_box_pack_end (GTK_BOX (hbox), close_button, FALSE, FALSE, 0);
|
||||||
gtk_container_add (GTK_CONTAINER (but), hbox);
|
gtk_container_add (GTK_CONTAINER (but), hbox);
|
||||||
g_object_set_data (G_OBJECT (but), "tab-label", label);
|
g_object_set_data (G_OBJECT (but), "tab-label", label);
|
||||||
g_object_set_data (G_OBJECT (but), "tab-close-button", close_button);
|
g_object_set_data (G_OBJECT (but), "tab-close-button", close_button);
|
||||||
|
|||||||
@@ -550,9 +550,9 @@ fe_userlist_insert (session *sess, struct User *newuser, gboolean sel)
|
|||||||
prefix_escaped = g_markup_escape_text (prefix_text, -1);
|
prefix_escaped = g_markup_escape_text (prefix_text, -1);
|
||||||
prefix_color = userlist_prefix_color (newuser->prefix[0]);
|
prefix_color = userlist_prefix_color (newuser->prefix[0]);
|
||||||
if (prefix_color)
|
if (prefix_color)
|
||||||
prefix = g_strdup_printf ("<b><span foreground=\"%s\">%s</span></b>", prefix_color, prefix_escaped);
|
prefix = g_strdup_printf ("<span foreground=\"%s\">%s</span>", prefix_color, prefix_escaped);
|
||||||
else
|
else
|
||||||
prefix = g_strdup_printf ("<b>%s</b>", prefix_escaped);
|
prefix = g_strdup (prefix_escaped);
|
||||||
g_free (prefix_escaped);
|
g_free (prefix_escaped);
|
||||||
}
|
}
|
||||||
pix = NULL;
|
pix = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user