1
/* Generated by GOB (v2.0.14) (do not edit directly) */
3
/* End world hunger, donate to the World Food Programme, http://www.wfp.org */
5
#define GOB_VERSION_MAJOR 2
6
#define GOB_VERSION_MINOR 0
7
#define GOB_VERSION_PATCHLEVEL 14
9
#define selfp (self->_priv)
11
#include "lm-applet.h"
13
#include "lm-applet-private.h"
16
#define ___GOB_LIKELY(expr) G_LIKELY(expr)
17
#define ___GOB_UNLIKELY(expr) G_UNLIKELY(expr)
18
#else /* ! G_LIKELY */
19
#define ___GOB_LIKELY(expr) (expr)
20
#define ___GOB_UNLIKELY(expr) (expr)
23
#line 32 "lm-applet.gob"
27
#include <panel-applet-gconf.h>
30
#include "lm-preferences-dialog.h"
31
#include "lm-about-dialog.h"
33
#include "lm-host-frontend.h"
35
#define ICON_PADDING 1
39
#define CONF_HOSTS "hosts"
40
#define CONF_DELAY "delay"
41
#define CONF_TIMEOUT "timeout"
42
#define CONF_SCALE "scale"
43
#define CONF_PREFERENCES_WIDTH "preferences_width"
44
#define CONF_PREFERENCES_HEIGHT "preferences_height"
46
/* keep in sync with link-monitor-applet.schemas */
47
#define DEFAULT_PREFERENCES_WIDTH -1
48
#define DEFAULT_PREFERENCES_HEIGHT 387
50
/* keep in sync with preferences.glade */
51
#define MIN_DELAY 1000
52
#define MIN_TIMEOUT 100
55
#line 56 "lm-applet.c"
56
/* self casting macros */
57
#define SELF(x) LM_APPLET(x)
58
#define SELF_CONST(x) LM_APPLET_CONST(x)
59
#define IS_SELF(x) LM_IS_APPLET(x)
60
#define TYPE_SELF LM_TYPE_APPLET
61
#define SELF_CLASS(x) LM_APPLET_CLASS(x)
63
#define SELF_GET_CLASS(x) LM_APPLET_GET_CLASS(x)
66
typedef LMApplet Self;
67
typedef LMAppletClass SelfClass;
69
/* here are local prototypes */
70
static void ___object_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec);
71
static void ___object_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec);
72
static void lm_applet_init (LMApplet * o) G_GNUC_UNUSED;
73
static void ___real_lm_applet_activate (LMApplet * self);
74
static void lm_applet_activate (LMApplet * self) G_GNUC_UNUSED;
75
static void ___real_lm_applet_activate_preferences (LMApplet * self);
76
static void lm_applet_activate_preferences (LMApplet * self) G_GNUC_UNUSED;
77
static void lm_applet_class_init (LMAppletClass * class) G_GNUC_UNUSED;
78
static gboolean lm_applet_factory_cb (PanelApplet * applet, const char * iid, gpointer data) G_GNUC_UNUSED;
79
static void lm_applet_destroy_h (GtkObject * object, gpointer user_data) G_GNUC_UNUSED;
80
static void lm_applet_reconfigure (LMApplet * self) G_GNUC_UNUSED;
81
static gboolean lm_applet_reconfigure_timeout_cb (gpointer data) G_GNUC_UNUSED;
82
static void lm_applet_change_background_h (PanelApplet * applet, PanelAppletBackgroundType type, GdkColor * color, GdkPixmap * pixmap, gpointer user_data) G_GNUC_UNUSED;
83
static gboolean lm_applet_button_press_event_h (GtkWidget * widget, GdkEventButton * event, gpointer user_data) G_GNUC_UNUSED;
84
static void lm_applet_preferences_cb (BonoboUIComponent * component, gpointer user_data, const char * cname) G_GNUC_UNUSED;
85
static void lm_applet_help_cb (BonoboUIComponent * component, gpointer user_data, const char * cname) G_GNUC_UNUSED;
86
static void lm_applet_about_cb (BonoboUIComponent * component, gpointer user_data, const char * cname) G_GNUC_UNUSED;
87
static void lm_applet_display_preferences_dialog (LMApplet * self) G_GNUC_UNUSED;
88
static void lm_applet_display_window (LMApplet * self, GType type, GtkWidget ** ptr) G_GNUC_UNUSED;
89
static void lm_applet_update (LMApplet * self) G_GNUC_UNUSED;
90
static void lm_applet_update_applet (LMApplet * self) G_GNUC_UNUSED;
91
static void lm_applet_update_tooltip (LMApplet * self) G_GNUC_UNUSED;
92
static void lm_applet_sync_gconf_hosts (LMApplet * self) G_GNUC_UNUSED;
93
static LMHost * lm_applet_host_new (LMApplet * self, const char * name) G_GNUC_UNUSED;
94
static LMHost * lm_applet_add_host_internal (LMApplet * self, const char * name) G_GNUC_UNUSED;
95
static LMHost * lm_applet_replace_host_internal (LMApplet * self, LMHost * old, const char * new) G_GNUC_UNUSED;
96
static void lm_applet_reorder_hosts_internal (LMApplet * self, GSList * new_hosts) G_GNUC_UNUSED;
97
static void lm_applet_remove_host_internal (LMApplet * self, LMHost * host) G_GNUC_UNUSED;
100
* Signal connection wrapper macro shortcuts
102
#define self_connect__activate(object,func,data) lm_applet_connect__activate((object),(func),(data))
103
#define self_connect_after__activate(object,func,data) lm_applet_connect_after__activate((object),(func),(data))
104
#define self_connect_data__activate(object,func,data,destroy_data,flags) lm_applet_connect_data__activate((object),(func),(data),(destroy_data),(flags))
105
#define self_connect__activate_preferences(object,func,data) lm_applet_connect__activate_preferences((object),(func),(data))
106
#define self_connect_after__activate_preferences(object,func,data) lm_applet_connect_after__activate_preferences((object),(func),(data))
107
#define self_connect_data__activate_preferences(object,func,data,destroy_data,flags) lm_applet_connect_data__activate_preferences((object),(func),(data),(destroy_data),(flags))
111
ACTIVATE_PREFERENCES_SIGNAL,
120
PROP_PREFERENCES_WIDTH,
121
PROP_PREFERENCES_HEIGHT
124
static guint object_signals[LAST_SIGNAL] = {0};
126
/* pointer to the class of our parent */
127
static PanelAppletClass *parent_class = NULL;
129
/* Short form macros */
130
#define self_get_delay lm_applet_get_delay
131
#define self_set_delay lm_applet_set_delay
132
#define self_get_timeout lm_applet_get_timeout
133
#define self_set_timeout lm_applet_set_timeout
134
#define self_get_scale lm_applet_get_scale
135
#define self_set_scale lm_applet_set_scale
136
#define self_get_preferences_width lm_applet_get_preferences_width
137
#define self_set_preferences_width lm_applet_set_preferences_width
138
#define self_get_preferences_height lm_applet_get_preferences_height
139
#define self_set_preferences_height lm_applet_set_preferences_height
140
#define self_activate lm_applet_activate
141
#define self_activate_preferences lm_applet_activate_preferences
142
#define self_factory_cb lm_applet_factory_cb
143
#define self_destroy_h lm_applet_destroy_h
144
#define self_reconfigure lm_applet_reconfigure
145
#define self_reconfigure_timeout_cb lm_applet_reconfigure_timeout_cb
146
#define self_change_background_h lm_applet_change_background_h
147
#define self_button_press_event_h lm_applet_button_press_event_h
148
#define self_preferences_cb lm_applet_preferences_cb
149
#define self_help_cb lm_applet_help_cb
150
#define self_about_cb lm_applet_about_cb
151
#define self_display_preferences_dialog lm_applet_display_preferences_dialog
152
#define self_display_window lm_applet_display_window
153
#define self_update lm_applet_update
154
#define self_update_applet lm_applet_update_applet
155
#define self_update_tooltip lm_applet_update_tooltip
156
#define self_factory_main lm_applet_factory_main
157
#define self_sync_gconf_hosts lm_applet_sync_gconf_hosts
158
#define self_host_new lm_applet_host_new
159
#define self_add_host_internal lm_applet_add_host_internal
160
#define self_replace_host_internal lm_applet_replace_host_internal
161
#define self_reorder_hosts_internal lm_applet_reorder_hosts_internal
162
#define self_remove_host_internal lm_applet_remove_host_internal
163
#define self_add_host lm_applet_add_host
164
#define self_replace_host lm_applet_replace_host
165
#define self_reorder_hosts lm_applet_reorder_hosts
166
#define self_remove_host lm_applet_remove_host
168
lm_applet_get_type (void)
170
static GType type = 0;
172
if ___GOB_UNLIKELY(type == 0) {
173
static const GTypeInfo info = {
174
sizeof (LMAppletClass),
175
(GBaseInitFunc) NULL,
176
(GBaseFinalizeFunc) NULL,
177
(GClassInitFunc) lm_applet_class_init,
178
(GClassFinalizeFunc) NULL,
179
NULL /* class_data */,
182
(GInstanceInitFunc) lm_applet_init,
186
type = g_type_register_static (PANEL_TYPE_APPLET, "LMApplet", &info, (GTypeFlags)0);
192
/* a macro for creating a new object of our type */
193
#define GET_NEW ((LMApplet *)g_object_new(lm_applet_get_type(), NULL))
195
/* a function for creating a new object of our type */
197
static LMApplet * GET_NEW_VARG (const char *first, ...) G_GNUC_UNUSED;
199
GET_NEW_VARG (const char *first, ...)
203
va_start (ap, first);
204
ret = (LMApplet *)g_object_new_valist (lm_applet_get_type (), first, ap);
211
___finalize(GObject *obj_self)
213
#define __GOB_FUNCTION__ "LM:Applet::finalize"
214
LMApplet *self G_GNUC_UNUSED = LM_APPLET (obj_self);
215
gpointer priv G_GNUC_UNUSED = self->_priv;
216
if(G_OBJECT_CLASS(parent_class)->finalize) \
217
(* G_OBJECT_CLASS(parent_class)->finalize)(obj_self);
219
#undef __GOB_FUNCTION__
222
lm_applet_init (LMApplet * o G_GNUC_UNUSED)
224
#define __GOB_FUNCTION__ "LM:Applet::init"
225
o->_priv = G_TYPE_INSTANCE_GET_PRIVATE(o,LM_TYPE_APPLET,LMAppletPrivate);
227
#undef __GOB_FUNCTION__
228
#line 143 "lm-applet.gob"
230
lm_applet_class_init (LMAppletClass * class G_GNUC_UNUSED)
231
#line 232 "lm-applet.c"
233
#define __GOB_FUNCTION__ "LM:Applet::class_init"
234
GObjectClass *g_object_class G_GNUC_UNUSED = (GObjectClass*) class;
236
g_type_class_add_private(class,sizeof(LMAppletPrivate));
238
parent_class = g_type_class_ref (PANEL_TYPE_APPLET);
240
object_signals[ACTIVATE_SIGNAL] =
241
g_signal_new ("activate",
242
G_TYPE_FROM_CLASS (g_object_class),
243
(GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),
244
G_STRUCT_OFFSET (LMAppletClass, activate),
246
g_cclosure_marshal_VOID__VOID,
248
object_signals[ACTIVATE_PREFERENCES_SIGNAL] =
249
g_signal_new ("activate_preferences",
250
G_TYPE_FROM_CLASS (g_object_class),
251
(GSignalFlags)(G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION),
252
G_STRUCT_OFFSET (LMAppletClass, activate_preferences),
254
g_cclosure_marshal_VOID__VOID,
257
#line 131 "lm-applet.gob"
258
class->activate = ___real_lm_applet_activate;
259
#line 137 "lm-applet.gob"
260
class->activate_preferences = ___real_lm_applet_activate_preferences;
261
#line 262 "lm-applet.c"
262
g_object_class->finalize = ___finalize;
263
g_object_class->get_property = ___object_get_property;
264
g_object_class->set_property = ___object_set_property;
266
GParamSpec *param_spec;
268
param_spec = g_param_spec_uint
272
MIN_DELAY /* minimum */,
273
G_MAXUINT /* maximum */,
274
MIN_DELAY /* default_value */,
275
(GParamFlags)(G_PARAM_READABLE | G_PARAM_WRITABLE));
276
g_object_class_install_property (g_object_class,
279
param_spec = g_param_spec_uint
280
("timeout" /* name */,
283
MIN_TIMEOUT /* minimum */,
284
G_MAXUINT /* maximum */,
285
MIN_TIMEOUT /* default_value */,
286
(GParamFlags)(G_PARAM_READABLE | G_PARAM_WRITABLE));
287
g_object_class_install_property (g_object_class,
290
param_spec = g_param_spec_uint
294
MIN_SCALE /* minimum */,
295
G_MAXUINT /* maximum */,
296
MIN_SCALE /* default_value */,
297
(GParamFlags)(G_PARAM_READABLE | G_PARAM_WRITABLE));
298
g_object_class_install_property (g_object_class,
301
param_spec = g_param_spec_int
302
("preferences_width" /* name */,
306
G_MAXINT /* maximum */,
307
DEFAULT_PREFERENCES_WIDTH /* default_value */,
308
(GParamFlags)(G_PARAM_READABLE | G_PARAM_WRITABLE));
309
g_object_class_install_property (g_object_class,
310
PROP_PREFERENCES_WIDTH,
312
param_spec = g_param_spec_int
313
("preferences_height" /* name */,
317
G_MAXINT /* maximum */,
318
DEFAULT_PREFERENCES_HEIGHT /* default_value */,
319
(GParamFlags)(G_PARAM_READABLE | G_PARAM_WRITABLE));
320
g_object_class_install_property (g_object_class,
321
PROP_PREFERENCES_HEIGHT,
325
#line 144 "lm-applet.gob"
327
GtkBindingSet *binding_set;
329
binding_set = gtk_binding_set_by_class(class);
331
gtk_binding_entry_add_signal(binding_set, GDK_Return, 0, "activate", 0);
332
gtk_binding_entry_add_signal(binding_set, GDK_ISO_Enter, 0, "activate", 0);
333
gtk_binding_entry_add_signal(binding_set, GDK_KP_Enter, 0, "activate", 0);
335
gtk_binding_entry_add_signal(binding_set, GDK_Return, GDK_MOD1_MASK, "activate-preferences", 0);
336
gtk_binding_entry_add_signal(binding_set, GDK_ISO_Enter, GDK_MOD1_MASK, "activate-preferences", 0);
337
gtk_binding_entry_add_signal(binding_set, GDK_KP_Enter, GDK_MOD1_MASK, "activate-preferences", 0);
339
#line 340 "lm-applet.c"
342
#undef __GOB_FUNCTION__
345
___object_set_property (GObject *object,
347
const GValue *VAL G_GNUC_UNUSED,
348
GParamSpec *pspec G_GNUC_UNUSED)
349
#define __GOB_FUNCTION__ "LM:Applet::set_property"
351
LMApplet *self G_GNUC_UNUSED;
353
self = LM_APPLET (object);
355
switch (property_id) {
358
#line 71 "lm-applet.gob"
360
panel_applet_gconf_set_int(PANEL_APPLET(self), CONF_DELAY, self->delay = g_value_get_uint(VAL), NULL);
362
#line 363 "lm-applet.c"
367
#line 82 "lm-applet.gob"
369
panel_applet_gconf_set_int(PANEL_APPLET(self), CONF_TIMEOUT, self->timeout = g_value_get_uint(VAL), NULL);
371
#line 372 "lm-applet.c"
376
#line 93 "lm-applet.gob"
378
panel_applet_gconf_set_int(PANEL_APPLET(self), CONF_SCALE, self->scale = g_value_get_uint(VAL), NULL);
380
#line 381 "lm-applet.c"
383
case PROP_PREFERENCES_WIDTH:
385
#line 104 "lm-applet.gob"
387
panel_applet_gconf_set_int(PANEL_APPLET(self), CONF_PREFERENCES_WIDTH, self->preferences_width = g_value_get_int(VAL), NULL);
389
#line 390 "lm-applet.c"
392
case PROP_PREFERENCES_HEIGHT:
394
#line 115 "lm-applet.gob"
396
panel_applet_gconf_set_int(PANEL_APPLET(self), CONF_PREFERENCES_HEIGHT, self->preferences_height = g_value_get_int(VAL), NULL);
398
#line 399 "lm-applet.c"
402
/* Apparently in g++ this is needed, glib is b0rk */
403
#ifndef __PRETTY_FUNCTION__
405
# define G_STRLOC __FILE__ ":" G_STRINGIFY (__LINE__)
407
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
411
#undef __GOB_FUNCTION__
414
___object_get_property (GObject *object,
416
GValue *VAL G_GNUC_UNUSED,
417
GParamSpec *pspec G_GNUC_UNUSED)
418
#define __GOB_FUNCTION__ "LM:Applet::get_property"
420
LMApplet *self G_GNUC_UNUSED;
422
self = LM_APPLET (object);
424
switch (property_id) {
427
#line 75 "lm-applet.gob"
429
g_value_set_uint(VAL, self->delay);
431
#line 432 "lm-applet.c"
436
#line 86 "lm-applet.gob"
438
g_value_set_uint(VAL, self->timeout);
440
#line 441 "lm-applet.c"
445
#line 97 "lm-applet.gob"
447
g_value_set_uint(VAL, self->scale);
449
#line 450 "lm-applet.c"
452
case PROP_PREFERENCES_WIDTH:
454
#line 108 "lm-applet.gob"
456
g_value_set_int(VAL, self->preferences_width);
458
#line 459 "lm-applet.c"
461
case PROP_PREFERENCES_HEIGHT:
463
#line 119 "lm-applet.gob"
465
g_value_set_int(VAL, self->preferences_height);
467
#line 468 "lm-applet.c"
471
/* Apparently in g++ this is needed, glib is b0rk */
472
#ifndef __PRETTY_FUNCTION__
474
# define G_STRLOC __FILE__ ":" G_STRINGIFY (__LINE__)
476
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
480
#undef __GOB_FUNCTION__
483
#line 75 "lm-applet.gob"
485
lm_applet_get_delay (LMApplet * self)
486
#line 487 "lm-applet.c"
488
#define __GOB_FUNCTION__ "LM:Applet::get_delay"
490
#line 69 "lm-applet.gob"
491
guint val; g_object_get (G_OBJECT (self), "delay", &val, NULL); return val;
493
#line 494 "lm-applet.c"
494
#undef __GOB_FUNCTION__
496
#line 71 "lm-applet.gob"
498
lm_applet_set_delay (LMApplet * self, guint val)
499
#line 500 "lm-applet.c"
501
#define __GOB_FUNCTION__ "LM:Applet::set_delay"
503
#line 69 "lm-applet.gob"
504
g_object_set (G_OBJECT (self), "delay", val, NULL);
506
#line 507 "lm-applet.c"
507
#undef __GOB_FUNCTION__
509
#line 86 "lm-applet.gob"
511
lm_applet_get_timeout (LMApplet * self)
512
#line 513 "lm-applet.c"
514
#define __GOB_FUNCTION__ "LM:Applet::get_timeout"
516
#line 80 "lm-applet.gob"
517
guint val; g_object_get (G_OBJECT (self), "timeout", &val, NULL); return val;
519
#line 520 "lm-applet.c"
520
#undef __GOB_FUNCTION__
522
#line 82 "lm-applet.gob"
524
lm_applet_set_timeout (LMApplet * self, guint val)
525
#line 526 "lm-applet.c"
527
#define __GOB_FUNCTION__ "LM:Applet::set_timeout"
529
#line 80 "lm-applet.gob"
530
g_object_set (G_OBJECT (self), "timeout", val, NULL);
532
#line 533 "lm-applet.c"
533
#undef __GOB_FUNCTION__
535
#line 97 "lm-applet.gob"
537
lm_applet_get_scale (LMApplet * self)
538
#line 539 "lm-applet.c"
540
#define __GOB_FUNCTION__ "LM:Applet::get_scale"
542
#line 91 "lm-applet.gob"
543
guint val; g_object_get (G_OBJECT (self), "scale", &val, NULL); return val;
545
#line 546 "lm-applet.c"
546
#undef __GOB_FUNCTION__
548
#line 93 "lm-applet.gob"
550
lm_applet_set_scale (LMApplet * self, guint val)
551
#line 552 "lm-applet.c"
553
#define __GOB_FUNCTION__ "LM:Applet::set_scale"
555
#line 91 "lm-applet.gob"
556
g_object_set (G_OBJECT (self), "scale", val, NULL);
558
#line 559 "lm-applet.c"
559
#undef __GOB_FUNCTION__
561
#line 108 "lm-applet.gob"
563
lm_applet_get_preferences_width (LMApplet * self)
564
#line 565 "lm-applet.c"
566
#define __GOB_FUNCTION__ "LM:Applet::get_preferences_width"
568
#line 102 "lm-applet.gob"
569
gint val; g_object_get (G_OBJECT (self), "preferences_width", &val, NULL); return val;
571
#line 572 "lm-applet.c"
572
#undef __GOB_FUNCTION__
574
#line 104 "lm-applet.gob"
576
lm_applet_set_preferences_width (LMApplet * self, gint val)
577
#line 578 "lm-applet.c"
579
#define __GOB_FUNCTION__ "LM:Applet::set_preferences_width"
581
#line 102 "lm-applet.gob"
582
g_object_set (G_OBJECT (self), "preferences_width", val, NULL);
584
#line 585 "lm-applet.c"
585
#undef __GOB_FUNCTION__
587
#line 119 "lm-applet.gob"
589
lm_applet_get_preferences_height (LMApplet * self)
590
#line 591 "lm-applet.c"
592
#define __GOB_FUNCTION__ "LM:Applet::get_preferences_height"
594
#line 113 "lm-applet.gob"
595
gint val; g_object_get (G_OBJECT (self), "preferences_height", &val, NULL); return val;
597
#line 598 "lm-applet.c"
598
#undef __GOB_FUNCTION__
600
#line 115 "lm-applet.gob"
602
lm_applet_set_preferences_height (LMApplet * self, gint val)
603
#line 604 "lm-applet.c"
605
#define __GOB_FUNCTION__ "LM:Applet::set_preferences_height"
607
#line 113 "lm-applet.gob"
608
g_object_set (G_OBJECT (self), "preferences_height", val, NULL);
610
#line 611 "lm-applet.c"
611
#undef __GOB_FUNCTION__
613
#line 131 "lm-applet.gob"
615
lm_applet_activate (LMApplet * self)
616
#line 617 "lm-applet.c"
618
GValue ___param_values[1];
619
GValue ___return_val;
621
memset (&___return_val, 0, sizeof (___return_val));
622
memset (&___param_values, 0, sizeof (___param_values));
624
#line 131 "lm-applet.gob"
625
g_return_if_fail (self != NULL);
626
#line 131 "lm-applet.gob"
627
g_return_if_fail (LM_IS_APPLET (self));
628
#line 629 "lm-applet.c"
630
___param_values[0].g_type = 0;
631
g_value_init (&___param_values[0], G_TYPE_FROM_INSTANCE (self));
632
g_value_set_instance (&___param_values[0], (gpointer) self);
634
g_signal_emitv (___param_values,
635
object_signals[ACTIVATE_SIGNAL],
639
g_value_unset (&___param_values[0]);
641
#line 131 "lm-applet.gob"
643
___real_lm_applet_activate (LMApplet * self G_GNUC_UNUSED)
644
#line 645 "lm-applet.c"
646
#define __GOB_FUNCTION__ "LM:Applet::activate"
648
#line 133 "lm-applet.gob"
650
self_display_preferences_dialog(self);
652
#line 653 "lm-applet.c"
653
#undef __GOB_FUNCTION__
655
#line 137 "lm-applet.gob"
657
lm_applet_activate_preferences (LMApplet * self)
658
#line 659 "lm-applet.c"
660
GValue ___param_values[1];
661
GValue ___return_val;
663
memset (&___return_val, 0, sizeof (___return_val));
664
memset (&___param_values, 0, sizeof (___param_values));
666
#line 137 "lm-applet.gob"
667
g_return_if_fail (self != NULL);
668
#line 137 "lm-applet.gob"
669
g_return_if_fail (LM_IS_APPLET (self));
670
#line 671 "lm-applet.c"
672
___param_values[0].g_type = 0;
673
g_value_init (&___param_values[0], G_TYPE_FROM_INSTANCE (self));
674
g_value_set_instance (&___param_values[0], (gpointer) self);
676
g_signal_emitv (___param_values,
677
object_signals[ACTIVATE_PREFERENCES_SIGNAL],
681
g_value_unset (&___param_values[0]);
683
#line 137 "lm-applet.gob"
685
___real_lm_applet_activate_preferences (LMApplet * self G_GNUC_UNUSED)
686
#line 687 "lm-applet.c"
688
#define __GOB_FUNCTION__ "LM:Applet::activate_preferences"
690
#line 139 "lm-applet.gob"
692
self_display_preferences_dialog(self);
694
#line 695 "lm-applet.c"
695
#undef __GOB_FUNCTION__
698
#line 158 "lm-applet.gob"
700
lm_applet_factory_cb (PanelApplet * applet, const char * iid, gpointer data)
701
#line 702 "lm-applet.c"
703
#define __GOB_FUNCTION__ "LM:Applet::factory_cb"
705
#line 160 "lm-applet.gob"
707
Self *self = SELF(applet);
708
static const BonoboUIVerb menu_verbs[] = {
709
BONOBO_UI_VERB("LinkMonitorPreferences", self_preferences_cb),
710
BONOBO_UI_VERB("LinkMonitorHelp", self_help_cb),
711
BONOBO_UI_VERB("LinkMonitorAbout", self_about_cb),
717
if (strcmp(iid, "OAFIID:GNOME_LinkMonitorApplet"))
722
lm_shell->applets = g_slist_append(lm_shell->applets, self);
724
panel_applet_set_flags(applet, PANEL_APPLET_EXPAND_MINOR);
725
panel_applet_add_preferences(applet, "/schemas/apps/link-monitor-applet/prefs", NULL);
726
panel_applet_setup_menu_from_file(applet, DATADIR, "GNOME_LinkMonitorApplet.xml", NULL, menu_verbs, applet);
728
self->delay = panel_applet_gconf_get_int(applet, CONF_DELAY, NULL);
729
if (self->delay < MIN_DELAY)
730
self->delay = MIN_DELAY;
732
self->timeout = panel_applet_gconf_get_int(applet, CONF_TIMEOUT, NULL);
733
if (self->timeout < MIN_TIMEOUT)
734
self->timeout = MIN_TIMEOUT;
736
self->scale = panel_applet_gconf_get_int(applet, CONF_SCALE, NULL);
737
if (self->scale < MIN_SCALE)
738
self->scale = MIN_SCALE;
740
self->preferences_width = panel_applet_gconf_get_int(applet, CONF_PREFERENCES_WIDTH, NULL);
741
if (! self->preferences_width)
742
self->preferences_width = DEFAULT_PREFERENCES_WIDTH;
744
self->preferences_height = panel_applet_gconf_get_int(applet, CONF_PREFERENCES_HEIGHT, NULL);
745
if (! self->preferences_height)
746
self->preferences_height = DEFAULT_PREFERENCES_HEIGHT;
748
selfp->tooltip_status_size_group = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
749
selfp->tooltip_flag_size_group = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
751
gconf_hosts = panel_applet_gconf_get_list(applet, CONF_HOSTS, GCONF_VALUE_STRING, NULL);
752
LM_LIST_FOREACH(l, gconf_hosts)
753
self_add_host_internal(self, l->data);
754
eel_g_slist_free_deep(gconf_hosts);
758
g_object_connect(self,
759
"signal::destroy", self_destroy_h, NULL,
760
"signal::button-press-event", self_button_press_event_h, NULL,
761
"signal::change-orient", self_reconfigure, NULL,
762
"signal::change-size", self_reconfigure, NULL,
763
"signal::change-background", self_change_background_h, NULL,
766
gtk_widget_show(GTK_WIDGET(self));
772
#line 773 "lm-applet.c"
773
#undef __GOB_FUNCTION__
775
#line 232 "lm-applet.gob"
777
lm_applet_destroy_h (GtkObject * object, gpointer user_data)
778
#line 779 "lm-applet.c"
780
#define __GOB_FUNCTION__ "LM:Applet::destroy_h"
782
#line 234 "lm-applet.gob"
784
Self *self = SELF(object);
786
lm_shell->applets = g_slist_remove(lm_shell->applets, self);
788
if (selfp->reconfigure_timeout_id)
789
g_source_remove(selfp->reconfigure_timeout_id);
791
lm_g_object_slist_free(self->hosts);
793
g_object_unref(selfp->tooltip_status_size_group);
794
g_object_unref(selfp->tooltip_flag_size_group);
796
if (selfp->preferences_dialog)
797
gtk_widget_destroy(selfp->preferences_dialog);
798
if (selfp->about_dialog)
799
gtk_widget_destroy(selfp->about_dialog);
801
gtk_widget_destroy(GTK_WIDGET(object));
803
#line 804 "lm-applet.c"
804
#undef __GOB_FUNCTION__
806
#line 255 "lm-applet.gob"
808
lm_applet_reconfigure (LMApplet * self)
809
#line 810 "lm-applet.c"
811
#define __GOB_FUNCTION__ "LM:Applet::reconfigure"
812
#line 255 "lm-applet.gob"
813
g_return_if_fail (self != NULL);
814
#line 255 "lm-applet.gob"
815
g_return_if_fail (LM_IS_APPLET (self));
816
#line 817 "lm-applet.c"
818
#line 257 "lm-applet.gob"
820
if (selfp->reconfigure_timeout_id)
821
/* cancel the previously queued reconfigure */
822
g_source_remove(selfp->reconfigure_timeout_id);
824
/* do not flood the panel with reconfigures, queue it */
825
selfp->reconfigure_timeout_id = g_timeout_add(10, self_reconfigure_timeout_cb, self);
827
#line 828 "lm-applet.c"
828
#undef __GOB_FUNCTION__
830
#line 266 "lm-applet.gob"
832
lm_applet_reconfigure_timeout_cb (gpointer data)
833
#line 834 "lm-applet.c"
835
#define __GOB_FUNCTION__ "LM:Applet::reconfigure_timeout_cb"
837
#line 268 "lm-applet.gob"
844
self_update_applet(self);
845
LM_LIST_FOREACH(l, self->hosts)
847
LMHostFrontend *host = l->data;
848
lm_host_frontend_configure_applet_progress_bar(host);
853
return FALSE; /* remove source */
855
#line 856 "lm-applet.c"
856
#undef __GOB_FUNCTION__
858
#line 287 "lm-applet.gob"
860
lm_applet_change_background_h (PanelApplet * applet, PanelAppletBackgroundType type, GdkColor * color, GdkPixmap * pixmap, gpointer user_data)
861
#line 862 "lm-applet.c"
863
#define __GOB_FUNCTION__ "LM:Applet::change_background_h"
865
#line 293 "lm-applet.gob"
867
GtkRcStyle *rc_style;
870
gtk_widget_set_style(GTK_WIDGET(applet), NULL);
871
rc_style = gtk_rc_style_new();
872
gtk_widget_modify_style(GTK_WIDGET(applet), rc_style);
873
gtk_rc_style_unref(rc_style);
877
case PANEL_NO_BACKGROUND:
880
case PANEL_COLOR_BACKGROUND:
881
gtk_widget_modify_bg(GTK_WIDGET(applet), GTK_STATE_NORMAL, color);
884
case PANEL_PIXMAP_BACKGROUND:
888
style = gtk_style_copy(GTK_WIDGET(applet)->style);
889
if (style->bg_pixmap[GTK_STATE_NORMAL])
890
g_object_unref(style->bg_pixmap[GTK_STATE_NORMAL]);
891
style->bg_pixmap[GTK_STATE_NORMAL] = g_object_ref(pixmap);
892
gtk_widget_set_style(GTK_WIDGET(applet), style);
893
g_object_unref(style);
898
#line 899 "lm-applet.c"
899
#undef __GOB_FUNCTION__
901
#line 326 "lm-applet.gob"
903
lm_applet_button_press_event_h (GtkWidget * widget, GdkEventButton * event, gpointer user_data)
904
#line 905 "lm-applet.c"
906
#define __GOB_FUNCTION__ "LM:Applet::button_press_event_h"
908
#line 330 "lm-applet.gob"
910
if (event->button == 1)
912
self_activate(SELF(widget));
913
return TRUE; /* do not propagate event */
916
return FALSE; /* propagate event */
918
#line 919 "lm-applet.c"
919
#undef __GOB_FUNCTION__
921
#line 340 "lm-applet.gob"
923
lm_applet_preferences_cb (BonoboUIComponent * component, gpointer user_data, const char * cname)
924
#line 925 "lm-applet.c"
926
#define __GOB_FUNCTION__ "LM:Applet::preferences_cb"
928
#line 344 "lm-applet.gob"
930
Self *self = user_data;
932
self_activate_preferences(self);
934
#line 935 "lm-applet.c"
935
#undef __GOB_FUNCTION__
937
#line 350 "lm-applet.gob"
939
lm_applet_help_cb (BonoboUIComponent * component, gpointer user_data, const char * cname)
940
#line 941 "lm-applet.c"
942
#define __GOB_FUNCTION__ "LM:Applet::help_cb"
944
#line 354 "lm-applet.gob"
946
lm_display_help(NULL);
948
#line 949 "lm-applet.c"
949
#undef __GOB_FUNCTION__
951
#line 358 "lm-applet.gob"
953
lm_applet_about_cb (BonoboUIComponent * component, gpointer user_data, const char * cname)
954
#line 955 "lm-applet.c"
956
#define __GOB_FUNCTION__ "LM:Applet::about_cb"
958
#line 362 "lm-applet.gob"
960
Self *self = user_data;
962
self_display_window(self, LM_TYPE_ABOUT_DIALOG, &selfp->about_dialog);
964
#line 965 "lm-applet.c"
965
#undef __GOB_FUNCTION__
967
#line 368 "lm-applet.gob"
969
lm_applet_display_preferences_dialog (LMApplet * self)
970
#line 971 "lm-applet.c"
972
#define __GOB_FUNCTION__ "LM:Applet::display_preferences_dialog"
973
#line 368 "lm-applet.gob"
974
g_return_if_fail (self != NULL);
975
#line 368 "lm-applet.gob"
976
g_return_if_fail (LM_IS_APPLET (self));
977
#line 978 "lm-applet.c"
979
#line 370 "lm-applet.gob"
981
self_display_window(self, LM_TYPE_PREFERENCES_DIALOG, &selfp->preferences_dialog);
983
#line 984 "lm-applet.c"
984
#undef __GOB_FUNCTION__
986
#line 374 "lm-applet.gob"
988
lm_applet_display_window (LMApplet * self, GType type, GtkWidget ** ptr)
989
#line 990 "lm-applet.c"
991
#define __GOB_FUNCTION__ "LM:Applet::display_window"
992
#line 374 "lm-applet.gob"
993
g_return_if_fail (self != NULL);
994
#line 374 "lm-applet.gob"
995
g_return_if_fail (LM_IS_APPLET (self));
996
#line 374 "lm-applet.gob"
997
g_return_if_fail (type != 0);
998
#line 374 "lm-applet.gob"
999
g_return_if_fail (ptr != NULL);
1000
#line 1001 "lm-applet.c"
1002
#line 378 "lm-applet.gob"
1004
GObjectClass *class;
1008
gtk_window_present(GTK_WINDOW(*ptr));
1012
class = g_type_class_ref(type);
1013
if (g_object_class_find_property(class, "applet"))
1014
*ptr = g_object_new(type, "applet", self, NULL);
1016
*ptr = g_object_new(type, NULL);
1017
g_type_class_unref(class);
1019
eel_add_weak_pointer(ptr);
1020
gtk_widget_show(*ptr);
1022
#line 1023 "lm-applet.c"
1023
#undef __GOB_FUNCTION__
1025
#line 398 "lm-applet.gob"
1027
lm_applet_update (LMApplet * self)
1028
#line 1029 "lm-applet.c"
1030
#define __GOB_FUNCTION__ "LM:Applet::update"
1031
#line 398 "lm-applet.gob"
1032
g_return_if_fail (self != NULL);
1033
#line 398 "lm-applet.gob"
1034
g_return_if_fail (LM_IS_APPLET (self));
1035
#line 1036 "lm-applet.c"
1037
#line 400 "lm-applet.gob"
1039
self_update_applet(self);
1040
self_update_tooltip(self);
1042
#line 1043 "lm-applet.c"
1043
#undef __GOB_FUNCTION__
1045
#line 405 "lm-applet.gob"
1047
lm_applet_update_applet (LMApplet * self)
1048
#line 1049 "lm-applet.c"
1050
#define __GOB_FUNCTION__ "LM:Applet::update_applet"
1051
#line 405 "lm-applet.gob"
1052
g_return_if_fail (self != NULL);
1053
#line 405 "lm-applet.gob"
1054
g_return_if_fail (LM_IS_APPLET (self));
1055
#line 1056 "lm-applet.c"
1057
#line 407 "lm-applet.gob"
1061
GtkWidget *old_child;
1065
switch (panel_applet_get_orient(PANEL_APPLET(self)))
1067
case PANEL_APPLET_ORIENT_UP:
1068
case PANEL_APPLET_ORIENT_DOWN:
1069
child = gtk_hbox_new(FALSE, BAR_SPACING);
1072
case PANEL_APPLET_ORIENT_LEFT:
1073
case PANEL_APPLET_ORIENT_RIGHT:
1074
child = gtk_vbox_new(FALSE, BAR_SPACING);
1078
g_assert_not_reached();
1082
LM_LIST_FOREACH(l, self->hosts)
1084
LMHostFrontend *host = l->data;
1087
parent = gtk_widget_get_parent(host->applet_progress_bar);
1089
gtk_container_remove(GTK_CONTAINER(parent), host->applet_progress_bar);
1091
gtk_box_pack_start(GTK_BOX(child), host->applet_progress_bar, FALSE, FALSE, 0);
1092
gtk_widget_show(host->applet_progress_bar);
1099
pixbuf = lm_pixbuf_new(GNOMEPIXMAPSDIR G_DIR_SEPARATOR_S "link-monitor-applet.png");
1105
size = panel_applet_get_size(PANEL_APPLET(self)) - (ICON_PADDING * 2);
1106
scaled = gdk_pixbuf_scale_simple(pixbuf, size, size, GDK_INTERP_BILINEAR);
1107
g_object_unref(pixbuf);
1109
child = gtk_image_new_from_pixbuf(scaled);
1110
g_object_unref(scaled);
1112
else /* use label as fallback */
1114
/* translators: header capitalization */
1115
child = gtk_label_new(_("<span size=\"small\">Link Monitor</span>"));
1116
gtk_label_set_use_markup(GTK_LABEL(child), TRUE);
1120
old_child = gtk_bin_get_child(GTK_BIN(self));
1122
gtk_container_remove(GTK_CONTAINER(self), old_child);
1124
gtk_container_add(GTK_CONTAINER(self), child);
1125
gtk_widget_show(child);
1127
#line 1128 "lm-applet.c"
1128
#undef __GOB_FUNCTION__
1130
#line 477 "lm-applet.gob"
1132
lm_applet_update_tooltip (LMApplet * self)
1133
#line 1134 "lm-applet.c"
1135
#define __GOB_FUNCTION__ "LM:Applet::update_tooltip"
1136
#line 477 "lm-applet.gob"
1137
g_return_if_fail (self != NULL);
1138
#line 477 "lm-applet.gob"
1139
g_return_if_fail (LM_IS_APPLET (self));
1140
#line 1141 "lm-applet.c"
1142
#line 479 "lm-applet.gob"
1150
vbox = gtk_vbox_new(TRUE, 6);
1152
LM_LIST_FOREACH(l, self->hosts)
1154
LMHostFrontend *host = l->data;
1157
parent = gtk_widget_get_parent(host->tooltip);
1159
gtk_container_remove(GTK_CONTAINER(parent), host->tooltip);
1161
gtk_box_pack_start(GTK_BOX(vbox), host->tooltip, TRUE, TRUE, 0);
1162
gtk_widget_show(host->tooltip);
1165
lm_tooltips_set_tip_widget(lm_shell->tooltips, GTK_WIDGET(self), vbox);
1166
gtk_widget_show(vbox);
1169
lm_tooltips_set_tip(lm_shell->tooltips, GTK_WIDGET(self), _("No host is being monitored."));
1171
#line 1172 "lm-applet.c"
1172
#undef __GOB_FUNCTION__
1174
#line 508 "lm-applet.gob"
1176
lm_applet_factory_main (void)
1177
#line 1178 "lm-applet.c"
1179
#define __GOB_FUNCTION__ "LM:Applet::factory_main"
1181
#line 510 "lm-applet.gob"
1183
return panel_applet_factory_main("OAFIID:GNOME_LinkMonitorApplet_Factory",
1188
#line 1189 "lm-applet.c"
1189
#undef __GOB_FUNCTION__
1191
#line 517 "lm-applet.gob"
1193
lm_applet_sync_gconf_hosts (LMApplet * self)
1194
#line 1195 "lm-applet.c"
1196
#define __GOB_FUNCTION__ "LM:Applet::sync_gconf_hosts"
1197
#line 517 "lm-applet.gob"
1198
g_return_if_fail (self != NULL);
1199
#line 517 "lm-applet.gob"
1200
g_return_if_fail (LM_IS_APPLET (self));
1201
#line 1202 "lm-applet.c"
1203
#line 519 "lm-applet.gob"
1205
GSList *gconf_hosts = NULL;
1208
LM_LIST_FOREACH(l, self->hosts)
1209
gconf_hosts = g_slist_append(gconf_hosts, LM_HOST(l->data)->name);
1211
panel_applet_gconf_set_list(PANEL_APPLET(self),
1217
g_slist_free(gconf_hosts);
1219
#line 1220 "lm-applet.c"
1220
#undef __GOB_FUNCTION__
1222
#line 535 "lm-applet.gob"
1224
lm_applet_host_new (LMApplet * self, const char * name)
1225
#line 1226 "lm-applet.c"
1227
#define __GOB_FUNCTION__ "LM:Applet::host_new"
1228
#line 535 "lm-applet.gob"
1229
g_return_val_if_fail (self != NULL, (LMHost * )0);
1230
#line 535 "lm-applet.gob"
1231
g_return_val_if_fail (LM_IS_APPLET (self), (LMHost * )0);
1232
#line 535 "lm-applet.gob"
1233
g_return_val_if_fail (name != NULL, (LMHost * )0);
1234
#line 1235 "lm-applet.c"
1236
#line 537 "lm-applet.gob"
1238
LMHostFrontend *host;
1240
host = lm_host_frontend_new(self, name, lm_shell_get_unique_host_id(lm_shell));
1241
gtk_size_group_add_widget(selfp->tooltip_status_size_group, host->tooltip_status_box);
1242
gtk_size_group_add_widget(selfp->tooltip_flag_size_group, host->tooltip_flag);
1244
return LM_HOST(host);
1246
#line 1247 "lm-applet.c"
1247
#undef __GOB_FUNCTION__
1249
#line 547 "lm-applet.gob"
1251
lm_applet_add_host_internal (LMApplet * self, const char * name)
1252
#line 1253 "lm-applet.c"
1254
#define __GOB_FUNCTION__ "LM:Applet::add_host_internal"
1255
#line 547 "lm-applet.gob"
1256
g_return_val_if_fail (self != NULL, (LMHost * )0);
1257
#line 547 "lm-applet.gob"
1258
g_return_val_if_fail (LM_IS_APPLET (self), (LMHost * )0);
1259
#line 547 "lm-applet.gob"
1260
g_return_val_if_fail (name != NULL, (LMHost * )0);
1261
#line 1262 "lm-applet.c"
1263
#line 549 "lm-applet.gob"
1267
host = self_host_new(self, name);
1268
self->hosts = g_slist_append(self->hosts, host);
1274
#line 1275 "lm-applet.c"
1275
#undef __GOB_FUNCTION__
1277
#line 560 "lm-applet.gob"
1279
lm_applet_replace_host_internal (LMApplet * self, LMHost * old, const char * new)
1280
#line 1281 "lm-applet.c"
1282
#define __GOB_FUNCTION__ "LM:Applet::replace_host_internal"
1283
#line 560 "lm-applet.gob"
1284
g_return_val_if_fail (self != NULL, (LMHost * )0);
1285
#line 560 "lm-applet.gob"
1286
g_return_val_if_fail (LM_IS_APPLET (self), (LMHost * )0);
1287
#line 560 "lm-applet.gob"
1288
g_return_val_if_fail (old != NULL, (LMHost * )0);
1289
#line 560 "lm-applet.gob"
1290
g_return_val_if_fail (LM_IS_HOST (old), (LMHost * )0);
1291
#line 560 "lm-applet.gob"
1292
g_return_val_if_fail (new != NULL, (LMHost * )0);
1293
#line 1294 "lm-applet.c"
1295
#line 564 "lm-applet.gob"
1300
elem = g_slist_find(self->hosts, old);
1301
g_assert(elem != NULL);
1303
new_host = self_host_new(self, new);
1305
g_object_unref(old);
1306
elem->data = new_host;
1312
#line 1313 "lm-applet.c"
1313
#undef __GOB_FUNCTION__
1315
#line 581 "lm-applet.gob"
1317
lm_applet_reorder_hosts_internal (LMApplet * self, GSList * new_hosts)
1318
#line 1319 "lm-applet.c"
1320
#define __GOB_FUNCTION__ "LM:Applet::reorder_hosts_internal"
1321
#line 581 "lm-applet.gob"
1322
g_return_if_fail (self != NULL);
1323
#line 581 "lm-applet.gob"
1324
g_return_if_fail (LM_IS_APPLET (self));
1325
#line 1326 "lm-applet.c"
1327
#line 583 "lm-applet.gob"
1329
lm_g_object_slist_free(self->hosts);
1330
self->hosts = lm_g_object_slist_copy(new_hosts);
1334
#line 1335 "lm-applet.c"
1335
#undef __GOB_FUNCTION__
1337
#line 590 "lm-applet.gob"
1339
lm_applet_remove_host_internal (LMApplet * self, LMHost * host)
1340
#line 1341 "lm-applet.c"
1342
#define __GOB_FUNCTION__ "LM:Applet::remove_host_internal"
1343
#line 590 "lm-applet.gob"
1344
g_return_if_fail (self != NULL);
1345
#line 590 "lm-applet.gob"
1346
g_return_if_fail (LM_IS_APPLET (self));
1347
#line 590 "lm-applet.gob"
1348
g_return_if_fail (host != NULL);
1349
#line 590 "lm-applet.gob"
1350
g_return_if_fail (LM_IS_HOST (host));
1351
#line 1352 "lm-applet.c"
1353
#line 592 "lm-applet.gob"
1357
elem = g_slist_find(self->hosts, host);
1358
g_assert(elem != NULL);
1360
self->hosts = g_slist_delete_link(self->hosts, elem);
1361
g_object_unref(host);
1365
#line 1366 "lm-applet.c"
1366
#undef __GOB_FUNCTION__
1368
#line 604 "lm-applet.gob"
1370
lm_applet_add_host (LMApplet * self, const char * name)
1371
#line 1372 "lm-applet.c"
1373
#define __GOB_FUNCTION__ "LM:Applet::add_host"
1374
#line 604 "lm-applet.gob"
1375
g_return_val_if_fail (self != NULL, (LMHost * )0);
1376
#line 604 "lm-applet.gob"
1377
g_return_val_if_fail (LM_IS_APPLET (self), (LMHost * )0);
1378
#line 604 "lm-applet.gob"
1379
g_return_val_if_fail (name != NULL, (LMHost * )0);
1380
#line 1381 "lm-applet.c"
1382
#line 606 "lm-applet.gob"
1386
host = self_add_host_internal(self, name);
1387
self_sync_gconf_hosts(self);
1391
#line 1392 "lm-applet.c"
1392
#undef __GOB_FUNCTION__
1394
#line 615 "lm-applet.gob"
1396
lm_applet_replace_host (LMApplet * self, LMHost * old, const char * new)
1397
#line 1398 "lm-applet.c"
1399
#define __GOB_FUNCTION__ "LM:Applet::replace_host"
1400
#line 615 "lm-applet.gob"
1401
g_return_val_if_fail (self != NULL, (LMHost * )0);
1402
#line 615 "lm-applet.gob"
1403
g_return_val_if_fail (LM_IS_APPLET (self), (LMHost * )0);
1404
#line 615 "lm-applet.gob"
1405
g_return_val_if_fail (old != NULL, (LMHost * )0);
1406
#line 615 "lm-applet.gob"
1407
g_return_val_if_fail (LM_IS_HOST (old), (LMHost * )0);
1408
#line 615 "lm-applet.gob"
1409
g_return_val_if_fail (new != NULL, (LMHost * )0);
1410
#line 1411 "lm-applet.c"
1412
#line 619 "lm-applet.gob"
1416
new_host = self_replace_host_internal(self, old, new);
1417
self_sync_gconf_hosts(self);
1421
#line 1422 "lm-applet.c"
1422
#undef __GOB_FUNCTION__
1424
#line 628 "lm-applet.gob"
1426
lm_applet_reorder_hosts (LMApplet * self, GSList * new_hosts)
1427
#line 1428 "lm-applet.c"
1429
#define __GOB_FUNCTION__ "LM:Applet::reorder_hosts"
1430
#line 628 "lm-applet.gob"
1431
g_return_if_fail (self != NULL);
1432
#line 628 "lm-applet.gob"
1433
g_return_if_fail (LM_IS_APPLET (self));
1434
#line 1435 "lm-applet.c"
1436
#line 630 "lm-applet.gob"
1438
self_reorder_hosts_internal(self, new_hosts);
1439
self_sync_gconf_hosts(self);
1441
#line 1442 "lm-applet.c"
1442
#undef __GOB_FUNCTION__
1444
#line 635 "lm-applet.gob"
1446
lm_applet_remove_host (LMApplet * self, LMHost * host)
1447
#line 1448 "lm-applet.c"
1449
#define __GOB_FUNCTION__ "LM:Applet::remove_host"
1450
#line 635 "lm-applet.gob"
1451
g_return_if_fail (self != NULL);
1452
#line 635 "lm-applet.gob"
1453
g_return_if_fail (LM_IS_APPLET (self));
1454
#line 635 "lm-applet.gob"
1455
g_return_if_fail (host != NULL);
1456
#line 635 "lm-applet.gob"
1457
g_return_if_fail (LM_IS_HOST (host));
1458
#line 1459 "lm-applet.c"
1460
#line 637 "lm-applet.gob"
1462
self_remove_host_internal(self, host);
1463
self_sync_gconf_hosts(self);
1465
#line 1466 "lm-applet.c"
1466
#undef __GOB_FUNCTION__