Back to index

im-sdk  12.3.91
Defines | Functions
status-placement.c File Reference
#include <glib.h>
#include <string.h>
#include "status-placement.h"

Go to the source code of this file.

Defines

#define PANEL_PLACEMENT   "panel" /* XIMStatusNothing */
#define APPL_PLACEMENT   "application" /* XIMStatusCallbacks */

Functions

IMStatusPlacement gimlet_status_placement (char *str)
char * gimlet_status_placement_name (IMStatusPlacement placement)

Define Documentation

#define APPL_PLACEMENT   "application" /* XIMStatusCallbacks */

Definition at line 28 of file status-placement.c.

#define PANEL_PLACEMENT   "panel" /* XIMStatusNothing */

Definition at line 27 of file status-placement.c.


Function Documentation

Definition at line 31 of file status-placement.c.

{
  if (str && (strcmp (str, PANEL_PLACEMENT) == 0))
    return ON_DESKTOP_PANEL;
  else if (str && (strcmp (str, APPL_PLACEMENT) == 0))
    return ATTACH_TO_APP_FRAME;
  else
    return ATTACH_TO_APP_FRAME;
}

Here is the caller graph for this function:

Definition at line 42 of file status-placement.c.

{
  switch (placement)
    {
    case ON_DESKTOP_PANEL:
      return PANEL_PLACEMENT;
      break;
    case ATTACH_TO_APP_FRAME:
      return APPL_PLACEMENT;
      break;
    }
  g_return_val_if_reached("placement name error");
}

Here is the caller graph for this function: