GCC=gcc
# Normal CFLAGS
-CFLAGS=-ggdb -O1 -pipe -DDEBUG=1
+CFLAGS=-ggdb -O1 -pipe -Wall -DDEBUG=1
LDFLAGS=-Wl,-O1 -Wl,--sort-common -Wl,--as-needed
#CFLAGS=-ggdb -O1 -pipe -DDEBUG=1 -ffunction-sections -fdata-sections
#LDFLAGS=-Wl,--gc-sections -Wl,--print-gc-sections
+#include <string.h>
+
#include "tilda.h"
#include "tilda-window.h"
#include "tilda-window-dbus-glue.h"
+#include "tomboykeybinder.h"
/**
* Find the TildaTerminal corresponding to the currently selected
GtkWidget *label = gtk_label_new ("Tilda");
gint index = gtk_notebook_prepend_page (GTK_NOTEBOOK(tw->notebook), tt->hbox, label);
gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK(tw->notebook), tt->hbox, TRUE, TRUE, GTK_PACK_END);
- //gtk_notebook_set_current_page (GTK_NOTEBOOK(tw->notebook), index);
+ gtk_notebook_set_current_page (GTK_NOTEBOOK(tw->notebook), index);
if (gtk_notebook_get_n_pages (GTK_NOTEBOOK(tw->notebook)) > 1)
gtk_notebook_set_show_tabs (GTK_NOTEBOOK(tw->notebook), TRUE);
/* Unbind if we were set */
if (self->key)
- tomboy_keybinder_unbind (self->key, tilda_window_keybinding_cb, self);
+ tomboy_keybinder_unbind (self->key, tilda_window_keybinding_cb);
ret = tomboy_keybinder_bind (new_key, tilda_window_keybinding_cb, self);
#include "tilda.h"
#include "tilda-window.h"
#include "tilda-terminal.h"
+#include "tomboykeybinder.h"
DBusGConnection *dbus_connection;
GPtrArray *windows;
static const gchar service_name[] = "net.sourceforge.Tilda";
GError *error = NULL;
DBusGProxy *driver_proxy;
- int request_ret;
+ guint request_ret;
// Initialize the DBus connection
dbus_connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
/* Optional debugging macros */
#ifdef DEBUG
- #define debug_enter() do { g_printf ("debug enter: %s\n", __func__); } while (0)
- #define debug_printf(args...) do { g_printf ("debug: " args); } while (0)
+ #define debug_enter() do { g_print ("debug enter: %s\n", __func__); } while (0)
+ #define debug_printf(args...) do { g_print ("debug: " args); } while (0)
#define debug_assert(args...) do { g_assert (args); } while (0)
#else
#define debug_enter() do { /* nothing */ } while (0)