Revision 1921 trunk/client/gui/auto_shutdown.c
| auto_shutdown.c (revision 1921) | ||
|---|---|---|
| 18 | 18 |
|
| 19 | 19 |
#include "gui.h" |
| 20 | 20 |
|
| 21 |
#if defined(HAVE_POLKIT) || defined(WIN32) || defined(DARWIN) |
|
| 22 | 21 |
static gboolean autoshutdown_enabled = FALSE; |
| 23 | 22 |
|
| 24 | 23 |
gboolean perform_shutdown(void); |
| ... | ... | |
| 45 | 44 |
g_idle_add((GSourceFunc) gtk_main_quit, NULL); |
| 46 | 45 |
} |
| 47 | 46 |
} |
| 48 |
#endif |
|
| 49 | 47 |
|
| 50 | 48 |
void |
| 51 | 49 |
autoshutdown_initialize(void) |
| ... | ... | |
| 54 | 52 |
return; |
| 55 | 53 |
} |
| 56 | 54 |
|
| 57 |
#if defined(HAVE_POLKIT) || defined(WIN32) || defined(DARWIN) |
|
| 58 |
#ifndef HAVE_POLKIT1 |
|
| 59 | 55 |
GtkWidget *toolbarMain = nntpgrab_gui_base_get_widget("toolbarMain");
|
| 60 | 56 |
GtkToolItem *item = gtk_toggle_tool_button_new(); |
| 61 | 57 |
gtk_tool_button_set_label(GTK_TOOL_BUTTON(item), _("Automatic shutdown"));
|
| ... | ... | |
| 66 | 62 |
|
| 67 | 63 |
g_signal_connect(item, "clicked", G_CALLBACK(tool_button_clicked), NULL); |
| 68 | 64 |
g_signal_connect(glue, "all_downloads_completed", G_CALLBACK(all_downloads_completed), NULL); |
| 69 |
#endif |
|
| 70 |
#endif |
|
| 71 | 65 |
} |
| 72 | 66 |
|
Also available in: Unified diff
NNTPGrab

