From 844d0e3520401215bbb55cdc5ed4eed81440b3df Mon Sep 17 00:00:00 2001 From: Josh Elsasser Date: Sat, 29 Apr 2006 16:29:04 +0000 Subject: [PATCH] Make padding of dialogs look a little better. Respect GNOME's toolbar settings. Patch from forum user /dev/urandom. --- gtk/dialogs.c | 6 +++--- gtk/main.c | 1 - gtk/trcellrenderertorrent.c | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gtk/dialogs.c b/gtk/dialogs.c index b1b815f3d..a311ab02e 100644 --- a/gtk/dialogs.c +++ b/gtk/dialogs.c @@ -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("%s", 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); \ diff --git a/gtk/main.c b/gtk/main.c index 59b43564e..adb11396b 100644 --- a/gtk/main.c +++ b/gtk/main.c @@ -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)); diff --git a/gtk/trcellrenderertorrent.c b/gtk/trcellrenderertorrent.c index a3b618d5a..fccdd74b6 100644 --- a/gtk/trcellrenderertorrent.c +++ b/gtk/trcellrenderertorrent.c @@ -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; }