Example #1
0
int
clip_GTK_ACCELMAPLOADFD(ClipMachine * ClipMachineMemory)
{
   gint      fd = _clip_parni(ClipMachineMemory, 1);

   CHECKARG(1, NUMERIC_type_of_ClipVarType);

   gtk_accel_map_load_fd(fd);

   return 0;
 err:
   return 1;
}
Example #2
0
/**
 * gtk_accel_map_load:
 * @file_name: (type filename): a file containing accelerator specifications,
 *   in the GLib file name encoding
 *
 * Parses a file previously saved with gtk_accel_map_save() for
 * accelerator specifications, and propagates them accordingly.
 */
void
gtk_accel_map_load (const gchar *file_name)
{
  gint fd;

  g_return_if_fail (file_name != NULL);

  fd = g_open (file_name, O_RDONLY, 0);
  if (fd < 0)
    return;

  gtk_accel_map_load_fd (fd);

  close (fd);
}