mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
Standardized non-numbered color selector button labels to use two figure spaces so their width matches the numbered palette buttons.
This commit is contained in:
@@ -1589,7 +1589,7 @@ setup_create_color_button (GtkWidget *table, int num, int row, int col)
|
||||
char buf[64];
|
||||
|
||||
if (num > 31)
|
||||
strcpy (buf, "<span size=\"x-small\"> </span>");
|
||||
strcpy (buf, "<span size=\"x-small\">  </span>");
|
||||
else if (num < 10)
|
||||
sprintf (buf, "<span size=\"x-small\"> %d</span>", num);
|
||||
else
|
||||
@@ -1614,7 +1614,7 @@ setup_create_color_button (GtkWidget *table, int num, int row, int col)
|
||||
g_object_set_data (G_OBJECT (but), "zoitechat-color", (gpointer)1);
|
||||
g_object_set_data (G_OBJECT (but), "zoitechat-color-box", box);
|
||||
gtk_table_attach (GTK_TABLE (table), but, col, col+1, row, row+1,
|
||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
||||
GTK_SHRINK, GTK_SHRINK, 0, 0);
|
||||
g_signal_connect (G_OBJECT (but), "clicked",
|
||||
G_CALLBACK (setup_color_cb), GINT_TO_POINTER (num));
|
||||
setup_color_button_apply (but, &colors[num]);
|
||||
|
||||
Reference in New Issue
Block a user