~ubuntu-branches/ubuntu/natty/empathy/natty-updates

« back to all changes in this revision

Viewing changes to python/pyempathygtk/pyempathygtk.c

  • Committer: Bazaar Package Importer
  • Author(s): Sjoerd Simons
  • Date: 2008-03-10 16:39:07 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20080310163907-tv41g2zmf0qqgi85
Tags: 0.22.0-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#line 3 "pyempathygtk.override"
8
8
#include <Python.h>
9
9
#include <pygobject.h>
10
 
#include "empathy-avatar-chooser.h"
11
 
#include "empathy-avatar-image.h"
12
10
#include "empathy-about-dialog.h"
13
11
#include "empathy-account-chooser.h"
14
12
#include "empathy-accounts-dialog.h"
15
 
#include "empathy-account-widget-generic.h"
16
 
#include "empathy-account-widget-jabber.h"
17
 
#include "empathy-account-widget-msn.h"
 
13
#include "empathy-account-widget.h"
 
14
#include "empathy-account-widget-irc.h"
 
15
#include "empathy-avatar-chooser.h"
 
16
#include "empathy-avatar-image.h"
 
17
#include "empathy-call-window.h"
 
18
#include "empathy-cell-renderer-activatable.h"
18
19
#include "empathy-cell-renderer-expander.h"
19
20
#include "empathy-cell-renderer-text.h"
20
 
#include "empathy-cell-renderer-activatable.h"
21
21
#include "empathy-chat.h"
22
22
#include "empathy-chatrooms-window.h"
23
23
#include "empathy-chat-view.h"
29
29
#include "empathy-contact-widget.h"
30
30
#include "empathy-geometry.h"
31
31
#include "empathy-group-chat.h"
 
32
#include "empathy-gtk-enum-types.h"
32
33
#include "empathy-images.h"
 
34
#include "empathy-irc-network-dialog.h"
33
35
#include "empathy-log-window.h"
34
36
#include "empathy-main-window.h"
35
37
#include "empathy-new-chatroom-dialog.h"
 
38
#include "empathy-new-message-dialog.h"
36
39
#include "empathy-preferences.h"
37
40
#include "empathy-presence-chooser.h"
38
41
#include "empathy-private-chat.h"
39
42
#include "empathy-profile-chooser.h"
 
43
#include "empathy-smiley-manager.h"
40
44
#include "empathy-spell-dialog.h"
41
45
#include "empathy-spell.h"
42
46
#include "empathy-status-icon.h"
 
47
#include "empathy-theme-boxes.h"
43
48
#include "empathy-theme.h"
 
49
#include "empathy-theme-irc.h"
44
50
#include "empathy-theme-manager.h"
45
 
#include "empathy-theme-boxes.h"
46
 
#include "empathy-theme-irc.h"
47
51
#include "empathy-ui-utils.h"
48
 
#include "empathy-smiley-manager.h"
49
 
#include "empathy-new-message-dialog.h"
50
 
#include "empathy-call-window.h"
51
 
#include "empathy-gtk-enum-types.h"
52
52
 
53
53
void empathy_add_constants(PyObject *module, const gchar *strip_prefix);
54
54
void empathy_register_classes(PyObject *d);
2843
2843
}
2844
2844
 
2845
2845
static PyObject *
2846
 
_wrap_empathy_call_window_show(PyObject *self, PyObject *args, PyObject *kwargs)
2847
 
{
2848
 
    static char *kwlist[] = { "call", NULL };
2849
 
    PyGObject *call;
2850
 
    GtkWidget *ret;
2851
 
 
2852
 
    if (!PyArg_ParseTupleAndKeywords(args, kwargs,"O!:empathy_call_window_show", kwlist, &PyEmpathyTpCall_Type, &call))
2853
 
        return NULL;
2854
 
    
2855
 
    ret = empathy_call_window_show(EMPATHY_TP_CALL(call->obj));
2856
 
    
2857
 
    /* pygobject_new handles NULL checking */
2858
 
    return pygobject_new((GObject *)ret);
2859
 
}
2860
 
 
2861
 
static PyObject *
2862
2846
_wrap_empathy_chat_get_is_command(PyObject *self, PyObject *args, PyObject *kwargs)
2863
2847
{
2864
2848
    static char *kwlist[] = { "str", NULL };
3417
3401
      NULL },
3418
3402
    { "empathy_accounts_dialog_show", (PyCFunction)_wrap_empathy_accounts_dialog_show, METH_VARARGS|METH_KEYWORDS,
3419
3403
      NULL },
3420
 
    { "empathy_call_window_show", (PyCFunction)_wrap_empathy_call_window_show, METH_VARARGS|METH_KEYWORDS,
3421
 
      NULL },
3422
3404
    { "empathy_chat_get_is_command", (PyCFunction)_wrap_empathy_chat_get_is_command, METH_VARARGS|METH_KEYWORDS,
3423
3405
      NULL },
3424
3406
    { "empathy_chat_should_highlight_nick", (PyCFunction)_wrap_empathy_chat_should_highlight_nick, METH_VARARGS|METH_KEYWORDS,
3513
3495
{
3514
3496
    PyObject *module;
3515
3497
 
3516
 
    if ((module = PyImport_ImportModule("gdk")) != NULL) {
3517
 
        _PyGdkPixbuf_Type = (PyTypeObject *)PyObject_GetAttrString(module, "Pixbuf");
3518
 
        if (_PyGdkPixbuf_Type == NULL) {
3519
 
            PyErr_SetString(PyExc_ImportError,
3520
 
                "cannot import name Pixbuf from gdk");
3521
 
            return ;
3522
 
        }
3523
 
    } else {
3524
 
        PyErr_SetString(PyExc_ImportError,
3525
 
            "could not import gdk");
3526
 
        return ;
3527
 
    }
3528
3498
    if ((module = PyImport_ImportModule("gobject")) != NULL) {
3529
3499
        _PyGObject_Type = (PyTypeObject *)PyObject_GetAttrString(module, "GObject");
3530
3500
        if (_PyGObject_Type == NULL) {
3621
3591
            "could not import gtk");
3622
3592
        return ;
3623
3593
    }
 
3594
    if ((module = PyImport_ImportModule("gtk.gdk")) != NULL) {
 
3595
        _PyGdkPixbuf_Type = (PyTypeObject *)PyObject_GetAttrString(module, "Pixbuf");
 
3596
        if (_PyGdkPixbuf_Type == NULL) {
 
3597
            PyErr_SetString(PyExc_ImportError,
 
3598
                "cannot import name Pixbuf from gtk.gdk");
 
3599
            return ;
 
3600
        }
 
3601
    } else {
 
3602
        PyErr_SetString(PyExc_ImportError,
 
3603
            "could not import gtk.gdk");
 
3604
        return ;
 
3605
    }
3624
3606
    if ((module = PyImport_ImportModule("empathy")) != NULL) {
3625
3607
        _PyEmpathyContact_Type = (PyTypeObject *)PyObject_GetAttrString(module, "Contact");
3626
3608
        if (_PyEmpathyContact_Type == NULL) {
3671
3653
    }
3672
3654
 
3673
3655
 
3674
 
#line 3675 "pyempathygtk.c"
 
3656
#line 3657 "pyempathygtk.c"
3675
3657
    pygobject_register_class(d, "EmpathyAccountChooser", EMPATHY_TYPE_ACCOUNT_CHOOSER, &PyEmpathyAccountChooser_Type, Py_BuildValue("(O)", &PyGtkComboBox_Type));
3676
3658
    pyg_set_object_has_new_constructor(EMPATHY_TYPE_ACCOUNT_CHOOSER);
3677
3659
    pygobject_register_class(d, "EmpathyAvatarChooser", EMPATHY_TYPE_AVATAR_CHOOSER, &PyEmpathyAvatarChooser_Type, Py_BuildValue("(O)", &PyGtkButton_Type));