Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. *Read more...*

Feature #909061 ยป 0037-gtk3x-Comment-out-chatline.c-tool-buttons-code.patch

Marko Lindqvist, 2020-12-24 06:48 AM

View differences:

client/gui-gtk-4.0/chatline.c
}
}
#ifdef TOOLBUTTON_GTK3
/**********************************************************************//**
Tool button clicked.
**************************************************************************/
......
gtk_widget_show(dialog);
g_free(buf);
}
#endif /* TOOLBUTTON_GTK3 */
/**********************************************************************//**
Moves the tool kit to the toolkit view.
......
return FALSE;
}
#ifdef TOOLBUTTON_GTK3
/**********************************************************************//**
Show/Hide the toolbar.
**************************************************************************/
......
ptoolkit->toolbar_displayed = FALSE;
}
}
#endif /* TOOLBUTTON_GTK3 */
/**********************************************************************//**
Returns a new inputline toolkit view widget that can contain the
......
**************************************************************************/
void chatline_init(void)
{
GtkWidget *vbox, *toolbar, *hbox, *button, *entry, *bbox;
GtkWidget *vbox, *hbox, *entry, *bbox;
#ifdef TOOLBUTTON_GTK3
GtkWidget *toolbar, *button;
GtkToolItem *item;
GdkRGBA color;
#endif /* TOOLBUTTON_GTK3 */
/* Chatline history. */
if (!history_list) {
......
gtk_grid_set_row_spacing(GTK_GRID(vbox), 2);
gtk_orientable_set_orientation(GTK_ORIENTABLE(vbox),
GTK_ORIENTATION_VERTICAL);
#ifdef TOOLBUTTON_GTK3
toolkit.main_widget = vbox;
g_signal_connect_after(vbox, "map",
G_CALLBACK(set_toolbar_visibility), &toolkit);
#endif /* TOOLBUTTON_GTK3 */
entry = gtk_entry_new();
g_object_set(entry, "margin", 2, NULL);
gtk_widget_set_hexpand(entry, TRUE);
toolkit.entry = entry;
hbox = gtk_grid_new();
gtk_grid_set_column_spacing(GTK_GRID(hbox), 4);
#ifdef TOOLBUTTON_GTK3
/* First line: toolbar */
toolbar = gtk_toolbar_new();
gtk_container_add(GTK_CONTAINER(vbox), toolbar);
......
_("Send the chat (Return)"));
/* Second line */
hbox = gtk_grid_new();
gtk_grid_set_column_spacing(GTK_GRID(hbox), 4);
gtk_container_add(GTK_CONTAINER(vbox), hbox);
/* Toggle button. */
......
g_signal_connect(button, "toggled", G_CALLBACK(button_toggled), &toolkit);
gtk_widget_set_tooltip_text(GTK_WIDGET(button), _("Chat tools"));
toolkit.toggle_button = button;
#endif /* TOOLBUTTON_GTK3 */
/* Entry. */
gtk_container_add(GTK_CONTAINER(hbox), entry);
    (1-1/1)