*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifdef HAVE_CONFIG_H
name->item = tpaths;
tdata->names = g_list_append(tdata->names, name);
+ if (!strcmp2(tpaths->data, prefs_common.pixmap_theme_path)) {
+ tdata->displayed = (gchar *)tpaths->data;
+ }
tpaths = g_list_next(tpaths);
g_free(sname);
}
tdata->page = page;
tpaths = g_list_first(tdata->themes);
- tdata->displayed = (gchar *)(tpaths->data);
+ if (tdata->displayed == NULL)
+ tdata->displayed = (gchar *)(tpaths->data);
}
static void prefs_themes_free_names(ThemesData *tdata)
if (IS_INTERNAL_THEME(path)) {
info->name = g_strdup(_("Default internal theme"));
- info->author = g_strdup(_("The Sylpheed Claws Team"));
+ info->author = g_strdup(_("The Sylpheed-Claws Team"));
info->url = g_strdup(HOMEPAGE_URI);
info->status = g_strdup_printf(_("Internal theme has %d icons"), N_STOCK_PIXMAPS);
}
ThemesPage *prefs_themes = (ThemesPage *)page;
ThemesData *tdata = prefs_themes_data;
gchar *buf;
+ const gchar *tmp;
gint i;
/* from gtk/about.c */
GtkStyle *style;
GTK_WIDGET_SET_FLAGS (btn_more, GTK_CAN_DEFAULT);
/* make it look like an uri */
gtk_button_set_relief(GTK_BUTTON(btn_more), GTK_RELIEF_NONE);
- gtk_label_get(GTK_LABEL(GTK_BIN(btn_more)->child), &buf);
- buf = g_strdup(buf);
+ tmp = gtk_label_get_text(GTK_LABEL(GTK_BIN(btn_more)->child));
+ buf = g_strdup(tmp);
for (i = 0; buf[i] != '\0'; buf[i++] = '_');
gtk_label_set_pattern(GTK_LABEL(GTK_BIN(btn_more)->child), buf);
g_free(buf);