Code cleanup
This commit is contained in:
parent
b87e0be0d4
commit
ef913edc0c
@ -101,7 +101,7 @@ static int _gprs_init(PhonePlugin * plugin)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if((gprs = object_new(sizeof(*gprs))) == NULL)
|
if((gprs = object_new(sizeof(*gprs))) == NULL)
|
||||||
return 1;
|
return -1;
|
||||||
plugin->priv = gprs;
|
plugin->priv = gprs;
|
||||||
gprs->source = 0;
|
gprs->source = 0;
|
||||||
gprs->roaming = FALSE;
|
gprs->roaming = FALSE;
|
||||||
@ -262,13 +262,13 @@ static void _gprs_settings(PhonePlugin * plugin)
|
|||||||
|
|
||||||
static GtkWidget * _settings_preferences(GPRS * gprs)
|
static GtkWidget * _settings_preferences(GPRS * gprs)
|
||||||
{
|
{
|
||||||
|
GtkSizeGroup * group;
|
||||||
GtkWidget * vbox;
|
GtkWidget * vbox;
|
||||||
GtkWidget * hbox;
|
GtkWidget * hbox;
|
||||||
GtkWidget * widget;
|
GtkWidget * widget;
|
||||||
GtkSizeGroup * group;
|
|
||||||
|
|
||||||
vbox = gtk_vbox_new(FALSE, 4);
|
|
||||||
group = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
|
group = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
|
||||||
|
vbox = gtk_vbox_new(FALSE, 4);
|
||||||
/* attachment */
|
/* attachment */
|
||||||
gprs->attach = gtk_check_button_new_with_label(
|
gprs->attach = gtk_check_button_new_with_label(
|
||||||
"Force GPRS registration");
|
"Force GPRS registration");
|
||||||
|
Loading…
Reference in New Issue
Block a user