Commit a233abaf authored by Mark McLoughlin's avatar Mark McLoughlin Committed by Mark McLoughlin

enable swallow loading/saving. (panel_applet_callback_set_sensitive):

2002-01-10  Mark McLoughlin  <mark@skynet.ie>

        * applet.[ch]: (panel_applet_load_from_unique_id),
        (panel_applet_save_to_gconf): enable swallow loading/saving.
        (panel_applet_callback_set_sensitive): kill.

        * basep-widget.[ch]:
        (basep_widget_enable_buttons): make sane.
        (basep_widget_pre_convert_hook):
        (basep_widget_get_hide_size): kill.
        (basep_widget_get_hide_orient): ditto.
        (basep_widget_set_state): ditto.

        * button-widget.c: (make_hc_pixbuf): upd.
        (do_saturate_darken): kill do_saturate_darken - not used.

        * drawer-widget.[ch]:
        (rawer_widget_restore_state): kill

        * floating-widget.[ch]:
        (floating_widget_change_orient): kill.

        * gnome-run.c, launcher.c, menu-properties.c: don't include
          xstuff.h

        * panel-config.c:
        (update_config_mode), (update_config_mode): kill unused.

        * panel-gconf.[ch]: (panel_gconf_get_session_key): ditto.

        * panel-util.c:
        (string_is_in_list), (strtok_with_escape), (escape_string):
        kill unused.

        * panel-widget.[ch]:
        (panel_widget_get_applet_count), (make_background),
        (panel_widget_get_pos), (panel_widget_change_orient),
        (panel_widget_get_applet_rgb_bg): ditto.
        (panel_widget_move), (panel_widget_get_free_space): not used,
        but is probably useful ... #ifdef out.

        * panel.[ch]:
        (panel_realize), (panel_setup): upd.
        (panel_data_by_id): kill unused.

        * rgb-stuff.[ch]: #ifdef everything out apart from
        transform_pixbuf. Can we kill all that stuff?

        * status-docklet.c: (status_docklet_instance_init): rename
        from status_docklet_init. An he claims i suck? :-)

        * xstuff.c: (redo_interface), (desk_notifier),
        (task_notifier): kill unused.
        (xstuff_init): kill old notifiers.
parent 2eca9880
2002-01-10 Mark McLoughlin <mark@skynet.ie>
* applet.[ch]: (panel_applet_load_from_unique_id),
(panel_applet_save_to_gconf): enable swallow loading/saving.
(panel_applet_callback_set_sensitive): kill.
* basep-widget.[ch]:
(basep_widget_enable_buttons): make sane.
(basep_widget_pre_convert_hook):
(basep_widget_get_hide_size): kill.
(basep_widget_get_hide_orient): ditto.
(basep_widget_set_state): ditto.
* button-widget.c: (make_hc_pixbuf): upd.
(do_saturate_darken): kill do_saturate_darken - not used.
* drawer-widget.[ch]:
(rawer_widget_restore_state): kill
* floating-widget.[ch]:
(floating_widget_change_orient): kill.
* gnome-run.c, launcher.c, menu-properties.c: don't include
xstuff.h
* panel-config.c:
(update_config_mode), (update_config_mode): kill unused.
* panel-gconf.[ch]: (panel_gconf_get_session_key): ditto.
* panel-util.c:
(string_is_in_list), (strtok_with_escape), (escape_string):
kill unused.
* panel-widget.[ch]:
(panel_widget_get_applet_count), (make_background),
(panel_widget_get_pos), (panel_widget_change_orient),
(panel_widget_get_applet_rgb_bg): ditto.
(panel_widget_move), (panel_widget_get_free_space): not used,
but is probably useful ... #ifdef out.
* panel.[ch]:
(panel_realize), (panel_setup): upd.
(panel_data_by_id): kill unused.
* rgb-stuff.[ch]: #ifdef everything out apart from
transform_pixbuf. Can we kill all that stuff?
* status-docklet.c: (status_docklet_instance_init): rename
from status_docklet_init. An he claims i suck? :-)
* xstuff.c: (redo_interface), (desk_notifier),
(task_notifier): kill unused.
(xstuff_init): kill old notifiers.
2002-01-10 Glynn Foster <glynn.foster@sun.com>
* Makefile.am, main.c, panel.c, session.c: Remove old cruft that
......
......@@ -393,35 +393,6 @@ panel_applet_remove_callback (AppletInfo *info,
}
}
void
panel_applet_callback_set_sensitive (AppletInfo *info,
const gchar *callback_name,
gint sensitive)
{
AppletUserMenu *menu;
g_return_if_fail(info != NULL);
menu = panel_applet_get_callback(info->user_menu, callback_name);
if (menu != NULL)
menu->sensitive = sensitive;
else
return; /*it just isn't there*/
/*make sure the menu is rebuilt*/
if(info->menu) {
GList *list;
for(list=info->user_menu;list!=NULL;list=g_list_next(list)) {
AppletUserMenu *menu = list->data;
menu->menuitem=NULL;
menu->submenu=NULL;
}
gtk_widget_unref(info->menu);
info->menu = NULL;
info->menu_age = 0;
}
}
static void
setup_an_item(AppletUserMenu *menu,
GtkWidget *submenu,
......@@ -886,7 +857,7 @@ panel_applet_load_from_unique_id (AppletType type,
drawer_load_from_gconf (panel_widget, position, unique_id);
break;
case APPLET_SWALLOW:
/*swallow_load_from_gconf (panel_widget, position, unique_id);*/
swallow_load_from_gconf (panel_widget, position, unique_id);
break;
case APPLET_MENU:
menu_load_from_gconf (panel_widget, position, unique_id);
......@@ -1024,8 +995,8 @@ panel_applet_save_to_gconf (AppletInfo *applet_info)
applet_info->gconf_key);
break;
case APPLET_SWALLOW:
/*swallow_save_to_gconf ((Drawer *) applet_info->data,
applet_info->gconf_key);*/
swallow_save_to_gconf ((Drawer *) applet_info->data,
applet_info->gconf_key);
break;
case APPLET_MENU:
menu_save_to_gconf ((Menu *) applet_info->data,
......
......@@ -87,10 +87,6 @@ AppletUserMenu *panel_applet_get_callback (GList *user_menu,
const gchar *name);
void panel_applet_callback_set_sensitive (AppletInfo *info,
const char *callback_name,
gint sensitive);
void panel_applet_load_applets_from_gconf (void);
void panel_applet_save_to_gconf (AppletInfo *applet_info);
void panel_applet_save_position (AppletInfo *applet_info,
......
......@@ -1633,7 +1633,7 @@ basep_widget_change_params (BasePWidget *basep,
gtk_widget_queue_resize (GTK_WIDGET (basep));
}
#if 0
#if FIXME
gboolean
basep_widget_convert_to (BasePWidget *basep,
PanelType type)
......@@ -1684,12 +1684,13 @@ basep_widget_convert_to (BasePWidget *basep,
#endif
void
basep_widget_enable_buttons_ (BasePWidget *basep, gboolean enabled)
basep_widget_enable_buttons (BasePWidget *basep,
gboolean enabled)
{
gtk_widget_set_sensitive(basep->hidebutton_n, enabled);
gtk_widget_set_sensitive(basep->hidebutton_e, enabled);
gtk_widget_set_sensitive(basep->hidebutton_w, enabled);
gtk_widget_set_sensitive(basep->hidebutton_s, enabled);
gtk_widget_set_sensitive (basep->hidebutton_n, enabled);
gtk_widget_set_sensitive (basep->hidebutton_e, enabled);
gtk_widget_set_sensitive (basep->hidebutton_w, enabled);
gtk_widget_set_sensitive (basep->hidebutton_s, enabled);
}
void
......@@ -2077,60 +2078,6 @@ basep_widget_get_applet_orient (BasePWidget *basep)
return klass->get_applet_orient(basep);
}
#if 0
void
basep_widget_get_hide_size (BasePWidget *basep,
PanelOrient hide_orient,
int *w, int *h)
{
BasePPosClass *klass = basep_widget_get_pos_class(basep);
basep_widget_get_size(basep, w, h);
if (basep->state == BASEP_SHOWN) {
g_warning ("get_hide_size() called on shown BasePWidget");
return;
}
g_return_if_fail (klass && klass->get_hide_size);
klass->get_hide_size (basep, hide_orient, w, h);
}
void
basep_widget_get_hide_orient (BasePWidget *basep,
PanelOrient *hide_orient)
{
BasePPosClass *klass = basep_widget_get_pos_class(basep);
*hide_orient = -1;
if (basep->state == BASEP_SHOWN) {
g_warning ("get_hide_orient() called on shown BasePWidget");
return;
}
g_return_if_fail (klass && klass->get_hide_size);
klass->get_hide_orient (basep, hide_orient);
}
void
basep_widget_get_hide_pos (BasePWidget *basep,
PanelOrient hide_orient,
int *x, int *y)
{
BasePPosClass *klass = basep_widget_get_pos_class(basep);
int w, h;
if (basep->state == BASEP_SHOWN) {
g_warning ("get_hide_pos() called on shown BasePWidget");
return;
}
basep_widget_get_hide_size (basep, hide_orient, &w, &h);
g_return_if_fail (klass && klass->get_hide_size);
klass->get_hide_orient (basep, hide_orient);
}
#endif
void
basep_widget_get_size (BasePWidget *basep,
int *w, int *h)
......@@ -2212,22 +2159,6 @@ basep_widget_pre_convert_hook (BasePWidget *basep)
klass->pre_convert_hook (basep);
}
void
basep_widget_set_state (BasePWidget *basep, BasePState state,
gboolean emit)
{
if (basep->state == state)
return;
basep->state = state;
if (emit)
g_signal_emit (G_OBJECT(basep),
basep_widget_signals[STATE_CHANGE_SIGNAL],
0, state);
panels_to_sync = TRUE;
}
void
basep_widget_screen_change (BasePWidget *basep, int screen)
{
......
......@@ -215,14 +215,8 @@ void basep_widget_change_params (BasePWidget *basep,
/*gboolean basep_widget_convert_to (BasePWidget *basep,
PanelType type);*/
void basep_widget_enable_buttons_ (BasePWidget *basep,
gboolean enabled);
#define basep_widget_enable_buttons(basep) \
(basep_widget_enable_buttons_ ((basep),TRUE))
#define basep_widget_disable_buttons(basep) \
(basep_widget_enable_buttons_ ((basep),FALSE))
void basep_widget_enable_buttons (BasePWidget *basep,
gboolean enabled);
void basep_widget_set_hidebuttons (BasePWidget *basep);
void basep_widget_update_winhints (BasePWidget *basep);
......@@ -275,23 +269,8 @@ void basep_widget_get_pos (BasePWidget *basep,
void basep_widget_get_size (BasePWidget *basep,
int *w, int *h);
PanelOrient basep_widget_get_hide_orient (BasePWidget *basep);
/*
void basep_widget_get_hide_size (BasePWidget *basep,
PanelOrient hide_orient,
int *w, int *h);
void basep_widget_get_hide_pos (BasePWidget *basep,
PanelOrient hide_orient,
int *w, int *h);
*/
void basep_widget_pre_convert_hook (BasePWidget *basep);
void basep_widget_set_state (BasePWidget *basep,
BasePState state,
gboolean emit);
void basep_widget_screen_change (BasePWidget *basep,
int screen);
......
......@@ -5,16 +5,12 @@
#include <libgnome/gnome-i18n.h>
#include <libgnome/gnome-util.h>
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <libart_lgpl/art_misc.h>
#include <libart_lgpl/art_affine.h>
#include <libart_lgpl/art_filterlevel.h>
#include "button-widget.h"
#include "panel-widget.h"
#include "basep-widget.h"
#include "panel-types.h"
#include "panel-util.h"
#include "panel-config-global.h"
#include "rgb-stuff.h"
#undef BUTTON_WIDGET_DEBUG
......@@ -399,59 +395,6 @@ loadup_file(const char *file)
return pb;
}
#if 0
/* #define INTENSITY(r, g, b) ((r) * 0.30 + (g) * 0.59 + (b) * 0.11) */
#define INTENSITY(r, g, b) (((r)*77 + (g)*150 + (b)*28)>>8)
/* saturation is 0-255, darken is 0-255 */
static void
do_saturate_darken (GdkPixbuf *dest, GdkPixbuf *src,
int saturation, int darken)
{
gint i, j;
gint width, height, has_alpha, srcrowstride, destrowstride;
guchar *target_pixels;
guchar *original_pixels;
guchar *pixsrc;
guchar *pixdest;
int intensity;
int alpha;
int negalpha;
int val;
guchar r,g,b;
has_alpha = gdk_pixbuf_get_has_alpha (src);
width = gdk_pixbuf_get_width (src);
height = gdk_pixbuf_get_height (src);
srcrowstride = gdk_pixbuf_get_rowstride (src);
destrowstride = gdk_pixbuf_get_rowstride (dest);
target_pixels = gdk_pixbuf_get_pixels (dest);
original_pixels = gdk_pixbuf_get_pixels (src);
for (i = 0; i < height; i++) {
pixdest = target_pixels + i*destrowstride;
pixsrc = original_pixels + i*srcrowstride;
for (j = 0; j < width; j++) {
r = *(pixsrc++);
g = *(pixsrc++);
b = *(pixsrc++);
intensity = INTENSITY(r,g,b);
negalpha = ((255 - saturation)*darken)>>8;
alpha = (saturation*darken)>>8;
val = (negalpha * intensity + alpha * r) >> 8;
*(pixdest++) = MIN(val, 255);
val = (negalpha * intensity + alpha * g) >> 8;
*(pixdest++) = MIN(val, 255);
val = (negalpha * intensity + alpha * b) >> 8;
*(pixdest++) = MIN(val, 255);
if (has_alpha)
*(pixdest++) = *(pixsrc++);
}
}
}
#undef INTENSITY
#endif
/* colorshift a pixbuf */
static void
do_colorshift (GdkPixbuf *dest, GdkPixbuf *src, int shift)
......@@ -640,7 +583,6 @@ make_hc_pixbuf(GdkPixbuf *pb)
gdk_pixbuf_get_width (pb),
gdk_pixbuf_get_height (pb));
do_colorshift (new, pb, 30);
/*do_saturate_darken (new, pb, (int)(1.00*255), (int)(1.15*255));*/
return new;
}
......
......@@ -502,13 +502,3 @@ drawer_widget_new (gchar *panel_id,
return GTK_WIDGET (drawer);
}
#if 0
void
drawer_widget_restore_state(DrawerWidget *drawer)
{
DRAWER_POS (BASEP_WIDGET (drawer)->pos)->temp_hidden = FALSE;
gtk_widget_queue_resize(GTK_WIDGET(drawer));
gtk_widget_show(GTK_WIDGET(drawer));
}
#endif
......@@ -82,16 +82,12 @@ void drawer_widget_change_params (DrawerWidget *drawer,
void drawer_widget_change_orient (DrawerWidget *drawer,
PanelOrient orient);
void drawer_widget_restore_state (DrawerWidget *drawer);
/*open and close drawers*/
void drawer_widget_open_drawer (DrawerWidget *panel,
GtkWidget *parentp);
void drawer_widget_close_drawer (DrawerWidget *panel,
GtkWidget *parentp);
void drawer_widget_restore_state (DrawerWidget *drawer);
G_END_DECLS
#endif
......@@ -470,33 +470,6 @@ floating_widget_change_params (FloatingWidget *floating,
}
void
floating_widget_change_orient (FloatingWidget *floating,
GtkOrientation orient)
{
FloatingPos *pos = FLOATING_POS (floating->pos);
if (PANEL_WIDGET (BASEP_WIDGET (floating)->panel)->orient != orient) {
BasePWidget *basep = BASEP_WIDGET (floating);
PanelWidget *panel = PANEL_WIDGET (basep->panel);
floating_widget_change_params (floating,
basep->screen,
pos->x,
pos->y,
orient,
basep->mode,
basep->state,
panel->sz,
basep->hidebuttons_enabled,
basep->hidebutton_pixmaps_enabled,
panel->back_type,
panel->back_pixmap,
panel->fit_pixmap_bg,
panel->stretch_pixmap_bg,
panel->rotate_pixmap_bg,
&panel->back_color);
}
}
void
floating_widget_change_coords (FloatingWidget *floating,
gint16 x, gint16 y)
......
......@@ -83,9 +83,6 @@ void floating_widget_change_params (FloatingWidget *floating,
void floating_widget_change_coords (FloatingWidget *floating,
gint16 x, gint16 y);
void floating_widget_change_orient (FloatingWidget *floating,
GtkOrientation orient);
G_END_DECLS
#endif
......@@ -66,13 +66,10 @@ static GConfEnumStringPair global_properties_type_enum_map [] = {
* See rgb-stuff.c.
*/
void transform_pixbuf(guchar *dst, int x0, int y0, int x1, int y1, int drs,
GdkPixbuf *pixbuf, double affine[6],
int level, ArtAlphaGamma *ag);
void transform_pixbuf(guchar *dst, int x0, int y0, int x1, int y1, int drs,
GdkPixbuf *pixbuf, double affine[6],
int level, ArtAlphaGamma *ag)
static void
transform_pixbuf(guchar *dst, int x0, int y0, int x1, int y1, int drs,
GdkPixbuf *pixbuf, double affine[6],
int level, ArtAlphaGamma *ag)
{
gint w, h, rs;
......
......@@ -66,13 +66,10 @@ static GConfEnumStringPair global_properties_type_enum_map [] = {
* See rgb-stuff.c.
*/
void transform_pixbuf(guchar *dst, int x0, int y0, int x1, int y1, int drs,
GdkPixbuf *pixbuf, double affine[6],
int level, ArtAlphaGamma *ag);
void transform_pixbuf(guchar *dst, int x0, int y0, int x1, int y1, int drs,
GdkPixbuf *pixbuf, double affine[6],
int level, ArtAlphaGamma *ag)
static void
transform_pixbuf(guchar *dst, int x0, int y0, int x1, int y1, int drs,
GdkPixbuf *pixbuf, double affine[6],
int level, ArtAlphaGamma *ag)
{
gint w, h, rs;
......
......@@ -49,7 +49,6 @@
#include "menu.h"
#include "multiscreen-stuff.h"
#include "panel-util.h"
#include "xstuff.h"
#define ADVANCED_DIALOG_KEY "advanced_run_dialog"
......
......@@ -32,7 +32,6 @@
#include "panel-config-global.h"
#include "panel-gconf.h"
#include "session.h"
#include "xstuff.h"
#include "gnome-desktop-item.h"
#include "gnome-ditem-edit.h"
......
......@@ -25,7 +25,6 @@
#include "quick-desktop-reader.h"
#include "panel-util.h"
#include "xstuff.h"
#include "menu-properties.h"
......
#include <string.h>
#include <libgnomecanvas/libgnomecanvas.h>
#include "panel-util.h"
#include "rgb-stuff.h"
#include "xstuff.h"
#include "nothing.h"
/*code snippet, not to be compiled separately*/
......
......@@ -31,9 +31,7 @@
#include "floating-widget.h"
#include "sliding-widget.h"
#include "panel.h"
#include "rgb-stuff.h"
#include "multiscreen-stuff.h"
#include "xstuff.h"
/*
* FIXME
......@@ -217,61 +215,6 @@ update_config_screen (BasePWidget *w)
update_config_offset_limit (w);
}
void
update_config_mode (BasePWidget *panel)
{
PerPanelConfig *ppc = get_config_struct (GTK_WIDGET (panel));
GtkWidget *toggle;
if (ppc == NULL ||
ppc->ppc_origin_change)
return;
toggle = ppc->autohide_button;
if (panel->mode == BASEP_AUTO_HIDE &&
! GTK_TOGGLE_BUTTON (toggle)->active)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
TRUE);
else if (panel->mode == BASEP_EXPLICIT_HIDE &&
GTK_TOGGLE_BUTTON (toggle)->active)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
FALSE);
}
void
update_config_hidebuttons (BasePWidget *panel)
{
PerPanelConfig *ppc = get_config_struct (GTK_WIDGET (panel));
GtkWidget *toggle;
if (ppc == NULL ||
ppc->ppc_origin_change)
return;
toggle = ppc->hidebuttons_button;
if (panel->hidebuttons_enabled &&
! GTK_TOGGLE_BUTTON (toggle)->active)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
TRUE);
else if ( ! panel->hidebuttons_enabled &&
GTK_TOGGLE_BUTTON (toggle)->active)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
FALSE);
toggle = ppc->hidebutton_pixmaps_button;
if (panel->hidebutton_pixmaps_enabled &&
! GTK_TOGGLE_BUTTON (toggle)->active)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
TRUE);
else if ( ! panel->hidebutton_pixmaps_enabled &&
GTK_TOGGLE_BUTTON (toggle)->active)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (toggle),
FALSE);
}
void
update_config_size (GtkWidget *panel)
{
......
......@@ -97,8 +97,6 @@ void panel_config_register_changes (PerPanelConfig *ppc);
void panel_config (GtkWidget *panel);
void update_config_size (GtkWidget *panel);
void update_config_screen (BasePWidget *panel);
void update_config_mode (BasePWidget *panel);
void update_config_hidebuttons (BasePWidget *panel);
void update_config_back (PanelWidget *panel);
void update_config_edge (BasePWidget *w);
void update_config_anchor (BasePWidget *w);
......
......@@ -65,23 +65,6 @@ panel_gconf_get_client (void) {
return client;
}
gchar *
panel_gconf_get_session_key (void) {
static gchar *session_key;
if (session_key == NULL) {
const gchar *panel_client_id;
panel_client_id = gnome_client_get_id (gnome_master_client ());
if (!panel_client_id) {
g_warning (G_STRLOC " : gnome_client_get_id returned NULL");
return NULL;
}
session_key = g_strdup_printf ("/apps/panel/sessions/%s", panel_client_id);
}
return session_key;
}
GSList *
panel_gconf_all_global_entries (void)
{
......
......@@ -33,9 +33,6 @@ void panel_gconf_panel_profile_set_int (const gchar *profile, const gchar *pane
void panel_gconf_panel_profile_set_bool (const gchar *profile, const gchar *panel_id, const gchar *key, gboolean value);
void panel_gconf_panel_profile_set_string (const gchar *profile, const gchar *panel_id, const gchar *key, const gchar *value);
/* FIXME - Probably not need anymore */
gchar * panel_gconf_get_session_key (void);
GSList *panel_gconf_all_global_entries (void);
gint panel_gconf_get_int (const gchar *key, gint default_val);
......
......@@ -134,15 +134,6 @@ panel_gnome_kde_help_path (const char *docpath)
#endif
}
gboolean
string_is_in_list(const GSList *list, const char *text)
{
for(;list != NULL; list = list->next)
if(strcmp(text,(char *)list->data) == 0)
return TRUE;
return FALSE;
}
static void
updated (GtkWidget *w, gpointer data)
{
......@@ -573,76 +564,6 @@ remove_directory(const char *dirname, gboolean just_clean)
g_free(oldcwd);
}
char *
strtok_with_escape(char *string, const char *seps, gboolean empty)
{
char *our_string;
static char *p = NULL;
g_return_val_if_fail(seps != NULL, NULL);
if(string)
p = string;
else if(!p)
return NULL;
our_string = p;
while(*p) {
if(*p == '\\' && *(p+1)) {
strcpy(p,p+1);
} else if(strchr(seps,*p)) {
*p = '\0';
if(empty || *our_string) {
p++;
return our_string;
}
/* this was an empty part and
we don't want to return empty
parts, so skip it */
our_string = p+1;
}
p++;
}
p = NULL;
if(!empty && !*our_string)
return NULL;
return our_string;
}
/* return a newly allocated string that escapes / and 'special' */
char *
escape_string(const char *string, const char *special)
{
int count;
const char *p;
char *ret;
int i;
if(!string) return NULL;
g_return_val_if_fail(special != NULL, NULL);
for(p=string,count=0; *p; p++,count++) {
if(*p == '\\' ||
strchr(special,*p))
count++;
}
ret = g_new(char,count+1);
i = 0;
for(p=string; *p; p++) {
if(*p == '\\' ||
strchr(special,*p))
ret[i++] = '\\';
ret[i++] = *p;
}
ret[i] = '\0';
return ret;
}
gboolean
convert_string_to_keysym_state(const char *string,
guint *keysym,
......
......@@ -10,9 +10,6 @@ G_BEGIN_DECLS
typedef void (*UpdateFunction) (gpointer);
gboolean string_is_in_list (const GSList *list,
const char *text);
/* return TRUE if string is NULL or the first character is '\0' */
gboolean string_empty (const char *string);
#define sure_string(s) ((s)!=NULL?(s):"")
......@@ -61,15 +58,6 @@ void set_frame_colors (PanelWidget *panel,
void remove_directory (const char *dirname,
gboolean just_clean);
/* like strtok, but unescapes string as well and escaped separators
don't count. if empty is true, don't skip empty parts */