Mercurial > pidgin
comparison src/prefs.c @ 901:f168f2c7b357
[gaim-migrate @ 911]
i can't believe i just did this
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Thu, 14 Sep 2000 00:37:51 +0000 |
parents | 93385c6fc772 |
children | bd5f4997f063 |
comparison
equal
deleted
inserted
replaced
900:e18815f5a4e9 | 901:f168f2c7b357 |
---|---|
1607 gtk_clist_set_reorderable(GTK_CLIST(preftree), FALSE); | 1607 gtk_clist_set_reorderable(GTK_CLIST(preftree), FALSE); |
1608 gtk_container_add(GTK_CONTAINER(scroll), preftree); | 1608 gtk_container_add(GTK_CONTAINER(scroll), preftree); |
1609 gtk_signal_connect(GTK_OBJECT(preftree), "tree_select_row", GTK_SIGNAL_FUNC(try_me), NULL); | 1609 gtk_signal_connect(GTK_OBJECT(preftree), "tree_select_row", GTK_SIGNAL_FUNC(try_me), NULL); |
1610 gtk_widget_show(preftree); | 1610 gtk_widget_show(preftree); |
1611 | 1611 |
1612 container = gtk_frame_new(NULL); | |
1613 gtk_container_set_border_width(GTK_CONTAINER(container), 0); | |
1614 gtk_frame_set_shadow_type(GTK_FRAME(container), GTK_SHADOW_NONE); | |
1615 gtk_paned_pack2(GTK_PANED(hpaned), container, TRUE, TRUE); | |
1616 gtk_widget_show(container); | |
1617 | |
1618 prefdialog = gtk_vbox_new(FALSE, 5); | |
1619 gtk_container_add(GTK_CONTAINER(container), prefdialog); | |
1620 gtk_widget_show(prefdialog); | |
1621 | |
1612 prefs_build_general(preftree); | 1622 prefs_build_general(preftree); |
1613 prefs_build_connect(preftree); | 1623 prefs_build_connect(preftree); |
1614 prefs_build_buddy(preftree); | 1624 prefs_build_buddy(preftree); |
1615 prefs_build_convo(preftree); | 1625 prefs_build_convo(preftree); |
1616 prefs_build_sound(preftree); | 1626 prefs_build_sound(preftree); |
1617 prefs_build_away(preftree); | 1627 prefs_build_away(preftree); |
1618 prefs_build_browser(preftree); | 1628 prefs_build_browser(preftree); |
1619 | 1629 |
1620 container = gtk_frame_new(NULL); | 1630 //general_page(); |
1621 gtk_container_set_border_width(GTK_CONTAINER(container), 0); | |
1622 gtk_frame_set_shadow_type(GTK_FRAME(container), GTK_SHADOW_NONE); | |
1623 gtk_paned_pack2(GTK_PANED(hpaned), container, TRUE, TRUE); | |
1624 gtk_widget_show(container); | |
1625 | |
1626 prefdialog = gtk_vbox_new(FALSE, 5); | |
1627 gtk_container_add(GTK_CONTAINER(container), prefdialog); | |
1628 gtk_widget_show(prefdialog); | |
1629 | |
1630 general_page(); | |
1631 | 1631 |
1632 hbox = gtk_hbox_new(FALSE, 5); | 1632 hbox = gtk_hbox_new(FALSE, 5); |
1633 gtk_box_pack_end(GTK_BOX(vbox), hbox, FALSE, FALSE, 5); | 1633 gtk_box_pack_end(GTK_BOX(vbox), hbox, FALSE, FALSE, 5); |
1634 gtk_widget_show(hbox); | 1634 gtk_widget_show(hbox); |
1635 | 1635 |
1813 | 1813 |
1814 text[0] = _("General"); | 1814 text[0] = _("General"); |
1815 parent = gtk_ctree_insert_node(GTK_CTREE(preftree), NULL, NULL, | 1815 parent = gtk_ctree_insert_node(GTK_CTREE(preftree), NULL, NULL, |
1816 text, 5, NULL, NULL, NULL, NULL, 0, 1); | 1816 text, 5, NULL, NULL, NULL, NULL, 0, 1); |
1817 gtk_ctree_node_set_row_data(GTK_CTREE(preftree), parent, general_page); | 1817 gtk_ctree_node_set_row_data(GTK_CTREE(preftree), parent, general_page); |
1818 | |
1819 gtk_ctree_select(GTK_CTREE(preftree), parent); | |
1818 } | 1820 } |
1819 | 1821 |
1820 void prefs_build_connect(GtkWidget *preftree) | 1822 void prefs_build_connect(GtkWidget *preftree) |
1821 { | 1823 { |
1822 GtkCTreeNode *parent, *node; | 1824 GtkCTreeNode *parent, *node; |