~ken-vandine/libindicate/with_mono_and_python_bindings-packaging

« back to all changes in this revision

Viewing changes to examples/im-client.c

  • Committer: Ken VanDine
  • Date: 2009-09-10 14:39:40 UTC
  • mfrom: (223.2.6 ubuntu)
  • Revision ID: ken.vandine@canonical.com-20090910143940-wjoeay60p7mfhhca
* New upstream release (LP: #427364)
  - Big change is renaming some signal names. :(
  - Bug fixes in getting properties.
  - Removing looking at the type on indicator lists.
  - Fixing the count callback.
* debian/control:
  - Increasing library versions to libindicate3
    and libindicate-gtk1.  Moving .install files as well.
* libindicate-dev and libindicate-gtk-dev.install change to
  /usr/include/libindicate-0.2 from 0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
#include <glib.h>
23
23
#include "libindicate/server.h"
24
 
#include "libindicate/indicator-message.h"
 
24
#include "libindicate/indicator.h"
25
25
#include "libindicate-gtk/indicator.h"
26
26
 
27
27
gchar * patha = "/usr/share/icons/hicolor/16x16/apps/empathy.png";
69
69
static void
70
70
interest_added (IndicateServer * server, IndicateInterests interest)
71
71
{
72
 
        g_debug("Oh, someone is interested in my for: %d", interest);
 
72
        g_debug("Oh, someone is interested in me for: %d", interest);
73
73
}
74
74
 
75
75
void
90
90
        g_signal_connect(G_OBJECT(server), INDICATE_SERVER_SIGNAL_INTEREST_ADDED, G_CALLBACK(interest_added), NULL);
91
91
        g_signal_connect(G_OBJECT(server), INDICATE_SERVER_SIGNAL_INTEREST_REMOVED, G_CALLBACK(interest_removed), NULL);
92
92
 
93
 
        IndicateIndicatorMessage * indicator;
 
93
        IndicateIndicator * indicator;
94
94
 
95
 
        indicator = indicate_indicator_message_new();
 
95
        indicator = indicate_indicator_new();
96
96
        indicate_indicator_set_property(INDICATE_INDICATOR(indicator), "subtype", "im");
97
97
        indicate_indicator_set_property(INDICATE_INDICATOR(indicator), "sender", "IM Client Test");
98
98
        GTimeVal time; g_get_current_time(&time);