Commit cd947ac9 authored by Jiri (George) Lebl's avatar Jiri (George) Lebl Committed by George Lebl

minor cleanups after -Wall compilation

Fri Jul 31 18:58:12 1998  George Lebl  <jirka@5z.com>

        * *.c: minor cleanups after -Wall compilation
parent c4ed07fb
Fri Jul 31 18:58:12 1998 George Lebl <jirka@5z.com>
* *.c: minor cleanups after -Wall compilation
Fri Jul 31 15:06:49 1998 George Lebl <jirka@5z.com>
* drawer.c,drawer-widget.c: minor fixes and added the new drawer
......
Fri Jul 31 18:58:12 1998 George Lebl <jirka@5z.com>
* *.c: minor cleanups after -Wall compilation
Fri Jul 31 15:06:49 1998 George Lebl <jirka@5z.com>
* drawer.c,drawer-widget.c: minor fixes and added the new drawer
......
......@@ -293,6 +293,7 @@ extern_socket_destroy(GtkWidget *w, gpointer data)
{
Extern *ext = data;
extern_clean(ext);
return FALSE;
}
/*note that type should be APPLET_EXTERN_RESERVED or APPLET_EXTERN_PENDING
......
......@@ -228,7 +228,6 @@ void
launcher_properties(Launcher *launcher)
{
GnomeDesktopEntry *dentry;
char *path;
GtkWidget *dialog;
dialog = gtk_object_get_data(GTK_OBJECT(launcher->button),
......
......@@ -737,7 +737,6 @@ create_menu_at (GtkWidget *menu,
while (flist) {
GtkWidget *sub, *pixmap;
GtkSignalFunc activate_func;
char *pixmap_name;
char *menuitem_name;
......
......@@ -1447,7 +1447,6 @@ panel_widget_applet_destroy(GtkWidget *applet, gpointer data)
PanelWidget *panel;
PanelWidget *p;
AppletData *ad;
int thick;
panel = gtk_object_get_data(GTK_OBJECT(applet),PANEL_APPLET_PARENT_KEY);
......@@ -1626,7 +1625,6 @@ panel_widget_reparent (PanelWidget *old_panel,
GtkWidget *applet,
int pos)
{
int thick;
AppletData *ad;
PanelWidget *p;
......@@ -1737,7 +1735,7 @@ int
panel_widget_remove (PanelWidget *panel, GtkWidget *applet)
{
AppletData *ad;
int i,thick;
int i;
PanelWidget *p;
g_return_val_if_fail(panel!=NULL,FALSE);
......
......@@ -55,15 +55,6 @@ extern PanelWidget *current_panel;
/*a list of started extern applet child processes*/
extern GList * children;
static void
panel_add_main_menu(GtkWidget *w, gpointer data)
{
PanelWidget *panel = get_def_panel_widget(data);
load_menu_applet(NULL,0, 0, panel);
}
/*get the default panel widget if the panel has more then one or
just get the that one*/
PanelWidget *
......@@ -777,7 +768,6 @@ static void
panel_applet_move(GtkWidget *panel,GtkWidget *widget, gpointer data)
{
int applet_id = GPOINTER_TO_INT(gtk_object_get_user_data(GTK_OBJECT(widget)));
AppletInfo *info = get_applet_info(applet_id);
if(g_list_find(applets_to_sync, GINT_TO_POINTER(applet_id))==NULL)
applets_to_sync = g_list_prepend(applets_to_sync,
......
......@@ -209,6 +209,8 @@ save_applet_configuration(int num)
case APPLET_LOGOUT:
gnome_config_set_string("config/id", LOGOUT_ID);
break;
default:
g_assert_not_reached();
}
gnome_config_set_int("config/position", ad->pos);
gnome_config_set_int("config/panel", panel_num);
......@@ -260,6 +262,8 @@ save_panel_configuration(gpointer data, gpointer user_data)
drawer->drop_zone_pos);
break;
}
default:
g_assert_not_reached();
}
gnome_config_set_bool("fit_pixmap_bg", panel->fit_pixmap_bg);
......
......@@ -39,6 +39,8 @@ void load_up_globals(void);
void init_user_applets(void);
void init_user_panels(void);
void apply_global_config(void);
END_GNOME_DECLS
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment