1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

Move config.h

small updates

Tweak header a bit

[CI] Add lto build to sh ci.

[CI] Fix artifact upload

[CI] no wildcard for artifact
This commit is contained in:
Dave Davenport 2022-11-17 13:21:15 +01:00
parent 30d50e3bdc
commit 66d782e0e7
21 changed files with 47 additions and 30 deletions

View file

@ -27,7 +27,7 @@ sources:
tasks:
- setup: |
cd rofi
meson setup builddir .
meson setup builddir . -Db_lto=true
- build: |
ninja -C rofi/builddir
- test: |
@ -38,4 +38,4 @@ tasks:
- dist: |
ninja -C rofi/builddir dist
artifacts:
- rofi/builddir/meson-dist/rofi-1.7.3-dev.tar.xz
- rofi/builddir/meson-dist/rofi-1.7.5-dev.tar.xz

View file

@ -29,7 +29,6 @@
#define ROFI_XCB_H
#include <cairo.h>
#include <config.h>
#ifdef XCB_IMDKIT
#include <xcb-imdkit/imclient.h>
#endif

View file

@ -24,6 +24,7 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
#include "config.h"
#include "history.h"
#include "rofi.h"

View file

@ -24,11 +24,12 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
#include "config.h"
#include "rofi.h"
#include "xrmoptions.h"
#include <glib.h>
#include <nkutils-bindings.h>
#include <string.h>
#include "nkutils-bindings.h"
typedef struct {
guint id;
@ -372,7 +373,7 @@ static const gchar *mouse_default_bindings[] = {
[MOUSE_DCLICK_UP] = "!MouseDPrimary",
};
void abe_list_all_bindings(gboolean is_term ) {
void abe_list_all_bindings(gboolean is_term) {
int length = 0;
for (gsize i = 0; i < G_N_ELEMENTS(rofi_bindings); ++i) {
@ -383,7 +384,8 @@ void abe_list_all_bindings(gboolean is_term ) {
for (gsize i = 0; i < G_N_ELEMENTS(rofi_bindings); ++i) {
ActionBindingEntry *b = &rofi_bindings[i];
if (is_term) {
printf("%s%*s%s - %s\n", color_bold,length, b->name, color_reset,b->binding);
printf("%s%*s%s - %s\n", color_bold, length, b->name, color_reset,
b->binding);
} else {
printf("%*s - %s\n", length, b->name, b->binding);
}
@ -439,11 +441,14 @@ gboolean parse_keys_abe(NkBindings *bindings) {
if (!nk_bindings_add_binding(bindings, b->scope, entry,
binding_check_action, binding_trigger_action,
GUINT_TO_POINTER(b->id), NULL, &error)) {
if ( error->code == NK_BINDINGS_ERROR_ALREADY_REGISTERED && error->domain == NK_BINDINGS_ERROR){
if (error->code == NK_BINDINGS_ERROR_ALREADY_REGISTERED &&
error->domain == NK_BINDINGS_ERROR) {
char *str = g_markup_printf_escaped(
"Failed to set binding <i>%s</i> for: <i>%s (%s)</i>:\n\t<span "
"size=\"smaller\" style=\"italic\">Binding `%s` is already bound.\n"
"\tExecute <b>rofi -list-keybindings</b> to get the current list of configured bindings.</span>\n",
"size=\"smaller\" style=\"italic\">Binding `%s` is already "
"bound.\n"
"\tExecute <b>rofi -list-keybindings</b> to get the current list "
"of configured bindings.</span>\n",
b->binding, b->comment, b->name, entry);
g_string_append(error_msg, str);
g_free(str);

View file

@ -27,6 +27,7 @@
/** The log domain of this dialog. */
#define G_LOG_DOMAIN "Modes.DMenu"
#include "config.h"
#include "modes/dmenu.h"
#include "helper.h"

View file

@ -28,7 +28,7 @@
/** The log domain of this dialog. */
#define G_LOG_DOMAIN "Modes.DRun"
#include <config.h>
#include "config.h"
#ifdef ENABLE_DRUN
#include <limits.h>
#include <stdio.h>

View file

@ -23,6 +23,7 @@
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include "config.h"
#include <errno.h>
#include <gio/gio.h>
#include <gmodule.h>

View file

@ -25,7 +25,7 @@
*
*/
#include <config.h>
#include "config.h"
#include <stdio.h>
#include <stdlib.h>

View file

@ -33,7 +33,7 @@
/** The log domain of this dialog. */
#define G_LOG_DOMAIN "Modes.Run"
#include <config.h>
#include "config.h"
#include <stdio.h>
#include <stdlib.h>

View file

@ -35,7 +35,7 @@
*/
#define G_LOG_DOMAIN "Modes.Ssh"
#include <config.h>
#include "config.h"
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>

View file

@ -28,7 +28,7 @@
/** The log domain of this dialog. */
#define G_LOG_DOMAIN "Modes.Window"
#include <config.h>
#include "config.h"
#ifdef WINDOW_MODE

View file

@ -27,6 +27,7 @@
/** The log domain of this widget. */
#define G_LOG_DOMAIN "Widgets.Container"
#include "config.h"
#include "widgets/container.h"
#include "theme.h"

View file

@ -27,6 +27,7 @@
/** The log domain of this widget. */
#define G_LOG_DOMAIN "Widgets.Icon"
#include "config.h"
#include "widgets/icon.h"
#include "theme.h"

View file

@ -25,7 +25,7 @@
*
*/
#include <config.h>
#include "config.h"
#include <glib.h>
#include <widgets/box.h>
#include <widgets/icon.h>

View file

@ -25,6 +25,7 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
#include "config.h"
#include "widgets/textbox.h"
#include "helper-theme.h"

View file

@ -24,6 +24,7 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
#include "config.h"
#include "widgets/widget.h"
#include "theme.h"

View file

@ -1187,6 +1187,7 @@ static gboolean x11_button_to_nk_bindings_scroll(guint32 x11_button,
static void rofi_key_press_event_handler(xcb_key_press_event_t *xkpe,
RofiViewState *state) {
gchar *text;
g_log("IMDKit", G_LOG_LEVEL_DEBUG, "press handler");
xcb->last_timestamp = xkpe->time;
if (config.xserver_i300_workaround) {
@ -1371,6 +1372,7 @@ static void main_loop_x11_event_handler_view(xcb_generic_event_t *event) {
xcb_key_press_event_t *xkpe = (xcb_key_press_event_t *)event;
#ifdef XCB_IMDKIT
if (xcb->ic) {
g_log("IMDKit", G_LOG_LEVEL_DEBUG, "input xim");
xcb_xim_forward_event(xcb->im, xcb->ic, xkpe);
} else
#endif

View file

@ -24,6 +24,7 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
#include "config.h"
#include "display.h"
#include "rofi-icon-fetcher.h"

View file

@ -24,7 +24,7 @@
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
#include "config.h"
#include "display.h"
#include "rofi-icon-fetcher.h"
#include "rofi.h"

View file

@ -25,6 +25,8 @@
*
*/
#include "config.h"
#include "display.h"
#include "rofi-icon-fetcher.h"
#include "rofi.h"

View file

@ -25,6 +25,7 @@
*
*/
#include "config.h"
#include <stdlib.h>
#include <unistd.h>