Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazar Taran committed Feb 3, 2021
1 parent 757acd3 commit adb2e02
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/data/css/auth.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 44,7 @@
border-color: #242b42;
border-width: 1px;
color: #c3c8da;
caret-color: rgb(180, 191, 216);
}
#login_fields:link
{
Expand Down
12 changes: 12 additions & 0 deletions client/src/creator_message.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 38,8 @@ void *scrolling_photo() {

void new_outgoing_message(GtkWidget *messages_block)
{
if (!messages_block)
return;
if(strcmp(msg_data.date, msg_data.date_prev))
{
GtkWidget *date = gtk_label_new(msg_data.date);
Expand Down Expand Up @@ -87,6 89,8 @@ void new_outgoing_message(GtkWidget *messages_block)

void new_incoming_message(GtkWidget *messages_block)
{
if (!messages_block)
return;
GtkWidget *message_body = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 2);
gtk_widget_set_name(GTK_WIDGET(message_body), "messages_body");
gtk_box_pack_start(GTK_BOX(messages_block), message_body, FALSE, FALSE, 0);
Expand Down Expand Up @@ -126,6 130,8 @@ void new_incoming_message(GtkWidget *messages_block)

void new_outgoing_sticker(GtkWidget *messages_block, int sticker_num)
{
if (!messages_block)
return;
char *path = "client/data/stickers/";
path = mx_strjoin(path, mx_itoa(sticker_num));
path = mx_strjoin(path, ".png");
Expand Down Expand Up @@ -165,6 171,8 @@ void new_outgoing_sticker(GtkWidget *messages_block, int sticker_num)

void new_incoming_sticker(GtkWidget *messages_block, int sticker_num)
{
if (!messages_block)
return;
char *path = "client/data/stickers/";
path = mx_strjoin(path, mx_itoa(sticker_num));
path = mx_strjoin(path, ".png");
Expand Down Expand Up @@ -204,6 212,8 @@ void new_incoming_sticker(GtkWidget *messages_block, int sticker_num)

void new_outgoing_embedded(GtkWidget *messages_block, char* path)
{
if (!messages_block)
return;
GtkWidget *embedded_body = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 2);
gtk_widget_set_name(GTK_WIDGET(embedded_body), "embedded_body");
gtk_box_pack_start(GTK_BOX(messages_block), embedded_body, FALSE, FALSE, 0);
Expand Down Expand Up @@ -249,6 259,8 @@ void new_outgoing_embedded(GtkWidget *messages_block, char* path)

void new_incoming_embedded(GtkWidget *messages_block, char* path)
{
if (!messages_block)
return;
GtkWidget *embedded_body = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 2);
gtk_widget_set_name(GTK_WIDGET(embedded_body), "embedded_body");
gtk_box_pack_start(GTK_BOX(messages_block), embedded_body, FALSE, FALSE, 0);
Expand Down

0 comments on commit adb2e02

Please sign in to comment.