~ubuntu-branches/ubuntu/hardy/pidgin/hardy

« back to all changes in this revision

Viewing changes to pidgin/gtksavedstatuses.c

  • Committer: Bazaar Package Importer
  • Author(s): Pedro Fragoso
  • Date: 2007-12-21 02:48:06 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20071221024806-pd44a5k9tiyh12mp
Tags: 1:2.3.1-2ubuntu1
* Sync with Debian, remaining Ubuntu changes; (LP: #177811)
  - Set Maintainer to Ubuntu Core Developers.
  - Add build-deps on liblaunchpad-integration-dev, intltool,
    libnm-glib-dev (for --enable-nm) (Ubuntu #112720).
  - Drop build-deps on libsilc-1.1-2-dev | libsilc-dev (>= 1.1.1) as 
    this library is in universe.
  - Drop the libpurple0 recommends on libpurple-bin.
  - Add a gaim transitionnal package for upgrades.
  - Ship compatibility symlinks via debian/gaim.links.
  - Pass --enable-nm to configure to enable NetworkManager support.
  - Pass --disable-silc to configure to disable silc support even if 
    it's installed in the build environment.
  - Add X-Ubuntu-Gettext-Domain to the desktop file and update the
    translation templates in common-install-impl::.
   - Update debian/prefs.xml to set the notify plugin prefs
    /plugins/gtk/X11/notify/* and set /pidgin/plugins/loaded to load 
    the notify plugin; Ubuntu: #13389.
  - Add LPI integration patch, 02_lpi.
  - Add patch 04_let_crasher_for_apport to stop catching the SIGSEGV signal
    and let apport handle it.
  - Add patch 05_default_to_irc_ubuntu_com to set the default IRC 
    server to irc.ubuntu.com.
  - Add autoconf patch, 70_autoconf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
};
64
64
 
65
65
/**
66
 
 * These is used for the GtkTreeView containing the list of accounts
 
66
 * These are used for the GtkTreeView containing the list of accounts
67
67
 * at the bottom of the window when you're editing a particular
68
68
 * saved status.
69
69
 */
898
898
 
899
899
        for (i = PURPLE_STATUS_UNSET + 1; i < PURPLE_STATUS_NUM_PRIMITIVES; i++)
900
900
        {
 
901
                if (i == PURPLE_STATUS_MOBILE || i == PURPLE_STATUS_TUNE)
 
902
                        /*
 
903
                         * Special-case these.  They're intended to be independent
 
904
                         * status types, so don't show them in the list.
 
905
                         */
 
906
                        continue;
901
907
                item = gtk_menu_item_new_with_label(purple_primitive_get_name_from_type(i));
902
908
                gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
903
909
        }
1201
1207
        gtk_box_pack_start(GTK_BOX(hbox), frame, TRUE, TRUE, 0);
1202
1208
        focus_chain = g_list_prepend(focus_chain, dialog->message);
1203
1209
        gtk_container_set_focus_chain(GTK_CONTAINER(hbox), focus_chain);
 
1210
        g_list_free(focus_chain);
1204
1211
 
1205
1212
        if ((saved_status != NULL) && (purple_savedstatus_get_message(saved_status) != NULL))
1206
1213
                gtk_imhtml_append_text(GTK_IMHTML(text),
1292
1299
                                         G_CALLBACK(status_editor_ok_cb), dialog);
1293
1300
 
1294
1301
        gtk_widget_show_all(win);
 
1302
        g_object_unref(sg);
1295
1303
}
1296
1304
 
1297
1305
 
1588
1596
 
1589
1597
                status_type = list->data;
1590
1598
 
1591
 
                /* Only allow users to select statuses that are flagged as "user settable" */
1592
 
                if (!purple_status_type_is_user_settable(status_type))
 
1599
                /*
 
1600
                 * Only allow users to select statuses that are flagged as
 
1601
                 * "user settable" and that aren't independent.
 
1602
                 */
 
1603
                if (!purple_status_type_is_user_settable(status_type) ||
 
1604
                                purple_status_type_is_independent(status_type))
1593
1605
                        continue;
1594
1606
 
1595
1607
                id = purple_status_type_get_id(status_type);
1621
1633
        }
1622
1634
 
1623
1635
        gtk_widget_show_all(win);
 
1636
        g_object_unref(sg);
1624
1637
}
1625
1638
 
1626
1639