mirror of
https://github.com/transmission/transmission
synced 2025-01-30 19:03:04 +00:00
Make padding of dialogs look a little better.
Respect GNOME's toolbar settings. Patch from forum user /dev/urandom.
This commit is contained in:
parent
1ec413ea5c
commit
844d0e3520
3 changed files with 4 additions and 5 deletions
|
@ -106,8 +106,8 @@ makeprefwindow(GtkWindow *parent, tr_handle_t *tr, gboolean *opened) {
|
|||
|
||||
g_free(title);
|
||||
gtk_widget_set_name(wind, "TransmissionDialog");
|
||||
gtk_table_set_col_spacings(GTK_TABLE(table), 12);
|
||||
gtk_table_set_row_spacings(GTK_TABLE(table), 12);
|
||||
gtk_table_set_col_spacings(GTK_TABLE(table), 8);
|
||||
gtk_table_set_row_spacings(GTK_TABLE(table), 8);
|
||||
gtk_dialog_set_default_response(GTK_DIALOG(wind), GTK_RESPONSE_OK);
|
||||
gtk_container_set_border_width(GTK_CONTAINER(table), 6);
|
||||
gtk_window_set_resizable(GTK_WINDOW(wind), FALSE);
|
||||
|
@ -385,7 +385,7 @@ addresp(GtkWidget *widget, gint resp, gpointer gdata) {
|
|||
do { \
|
||||
char *txt = g_markup_printf_escaped("<b>%s</b>", nam); \
|
||||
GtkWidget *wid = gtk_label_new(NULL); \
|
||||
gtk_misc_set_alignment(GTK_MISC(wid), 1, .5); \
|
||||
gtk_misc_set_alignment(GTK_MISC(wid), 0, .5); \
|
||||
gtk_label_set_markup(GTK_LABEL(wid), txt); \
|
||||
gtk_table_attach_defaults(GTK_TABLE(tab), wid, 0, 1, ii, ii + 1); \
|
||||
wid = gtk_label_new(val); \
|
||||
|
|
|
@ -400,7 +400,6 @@ makewind_toolbar(struct cbdata *data) {
|
|||
|
||||
gtk_toolbar_set_tooltips(GTK_TOOLBAR(bar), TRUE);
|
||||
gtk_toolbar_set_show_arrow(GTK_TOOLBAR(bar), FALSE);
|
||||
gtk_toolbar_set_style(GTK_TOOLBAR(bar), GTK_TOOLBAR_BOTH);
|
||||
|
||||
data->buttons = g_new(GtkWidget*, ALEN(actionitems));
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ tr_cell_renderer_torrent_init(TrCellRendererTorrent *tcell) {
|
|||
tcell->priv->text = g_strdup("");
|
||||
tcell->priv->text_attrs = NULL;
|
||||
tcell->priv->label = g_strdup("");
|
||||
tcell->priv->text_attrs = NULL;
|
||||
tcell->priv->label_attrs = NULL;
|
||||
tcell->priv->style = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue