Add dialogs.h header.

This commit is contained in:
Dave Davenport 2015-08-31 07:57:29 +02:00
parent 6c37c0d989
commit 5c618681c4
2 changed files with 16 additions and 9 deletions

14
include/dialogs/dialogs.h Normal file
View File

@ -0,0 +1,14 @@
#ifndef ROFI_DIALOGS_DIALOGS_H
#define ROFI_DIALOGS_DIALOGS_H
/**
* List of available dialogs.
*/
#include "dialogs/run.h"
#include "dialogs/ssh.h"
#include "dialogs/dmenu.h"
#include "dialogs/script.h"
#include "dialogs/window.h"
#include "dialogs/combi.h"
#endif // ROFI_DIALOGS_DIALOGS_H

View File

@ -49,14 +49,7 @@
#include "textbox.h" #include "textbox.h"
#include "x11-helper.h" #include "x11-helper.h"
#include "xrmoptions.h" #include "xrmoptions.h"
// Switchers. #include "dialogs/dialogs.h"
#include "dialogs/run.h"
#include "dialogs/ssh.h"
#include "dialogs/dmenu.h"
#include "dialogs/script.h"
#include "dialogs/window.h"
#include "dialogs/combi.h"
// TEMP // TEMP
@ -1604,7 +1597,7 @@ static void help ()
int code = execlp ( "man", "man", "-M", MANPAGE_PATH, "rofi", NULL ); int code = execlp ( "man", "man", "-M", MANPAGE_PATH, "rofi", NULL );
if ( code == -1 ) { if ( code == -1 ) {
fprintf ( stderr, "Failed to execute man: %s\n", strerror ( errno ) ); fprintf ( stderr, "Failed to execute manpage viewer: %s\n", strerror ( errno ) );
} }
} }