Mercurial > pidgin.yaz
changeset 5667:18f7a2abc3fc
[gaim-migrate @ 6084]
Can set tab position now.
Still need to add callbacks for this (and many other prefs) so it takes
effect immediately, but at least now I don't have to have my tabs on top ;-)
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 02 Jun 2003 12:44:32 +0000 |
parents | 44870684dba3 |
children | 30316c5b13da |
files | src/gaimrc.c src/gtkprefs.c |
diffstat | 2 files changed, 24 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gaimrc.c Mon Jun 02 10:30:14 2003 +0000 +++ b/src/gaimrc.c Mon Jun 02 12:44:32 2003 +0000 @@ -884,6 +884,11 @@ } else if (!strcmp(p->option, "im_options")) { im_options = atoi(p->value[0]); + gaim_prefs_set_int("/gaim/gtk/conversations/tab_side", + ((im_options & OPT_IM_SIDE_TAB) + ? ((im_options & OPT_IM_BR_TAB) ? GTK_POS_RIGHT : GTK_POS_LEFT) + : ((im_options & OPT_IM_BR_TAB) ? GTK_POS_BOTTOM : GTK_POS_TOP))); + gaim_prefs_set_bool("/gaim/gtk/conversations/im/hide_on_send", (im_options & OPT_IM_POPDOWN));
--- a/src/gtkprefs.c Mon Jun 02 10:30:14 2003 +0000 +++ b/src/gtkprefs.c Mon Jun 02 12:44:32 2003 +0000 @@ -973,6 +973,25 @@ vbox = gaim_gtk_make_frame (ret, _("Tab Options")); + names = NULL; + names = g_list_append(names, _("Top")); + names = g_list_append(names, GINT_TO_POINTER(GTK_POS_TOP)); + names = g_list_append(names, _("Bottom")); + names = g_list_append(names, GINT_TO_POINTER(GTK_POS_BOTTOM)); + names = g_list_append(names, _("Left")); + names = g_list_append(names, GINT_TO_POINTER(GTK_POS_LEFT)); + names = g_list_append(names, _("Right")); + names = g_list_append(names, GINT_TO_POINTER(GTK_POS_RIGHT)); + + label = prefs_dropdown_from_list(vbox, _("_Tab Placement:"), GAIM_PREF_INT, + "/gaim/gtk/conversations/tab_side", + names); + + g_list_free(names); + + gtk_misc_set_alignment(GTK_MISC(label), 0, 0); + gtk_size_group_add_widget(sg, label); + button = prefs_checkbox(_("Show IMs and chats in _tabbed windows"), "/gaim/gtk/conversations/tabs", vbox);