⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 session.c,v

📁 Perfession Linux Programming examples
💻 C,V
字号:
head	1.1;
access;
symbols;
locks
	cbbrowne:1.1; strict;
comment	@ * @;


1.1
date	2000.06.09.03.39.32;	author cbbrowne;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Initial revision
@
text
@/*
 *  Contains Gnome/GTK+ gui functions for DVD store
 *
 */

#ifdef HAVE_CONFIG_H
#  include <config.h>
#endif

#include <gnome.h>
#include "session.h"
#include "dvd_gui.h"
#include "misc.h"

gint
save_session (GnomeClient *client, gint phase, GnomeSaveStyle save_style,
	      gint is_shutdown, GnomeInteractStyle interact_style,
	      gint is_fast, gpointer client_data)
{
  gchar **argv;
  guint argc;

  argv = g_malloc0(sizeof(gchar*)*4);
  argc = 1;

  argv[0] = client_data;

  if (user && passwd)
    {
      argv[1] = "--username";
      argv[2] = user;
      argv[3] = "--password";
      argv[4] = passwd;
      argc = 5;
    }
  gnome_client_set_clone_command (client, argc, argv);
  gnome_client_set_restart_command (client, argc, argv);

  return TRUE;
}

gint
session_die (GnomeClient *client, gpointer client_data)
{
  exit_dvdstore();
  return TRUE;
}

















@

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -