Commit 8ad4b14d authored by Guillaume Desmottes's avatar Guillaume Desmottes

empathy-webkit-util: coding style fixes

https://bugzilla.gnome.org/show_bug.cgi?id=684357
parent 9c654275
......@@ -161,6 +161,7 @@ empathy_webkit_bind_font_setting (WebKitWebView *webview,
webkit_get_font_family,
NULL,
NULL, NULL);
g_settings_bind_with_mapping (gsettings, key,
settings, "default-font-size",
G_SETTINGS_BIND_GET,
......@@ -171,11 +172,11 @@ empathy_webkit_bind_font_setting (WebKitWebView *webview,
static void
empathy_webkit_copy_address_cb (GtkMenuItem *menuitem,
gpointer user_data)
gpointer user_data)
{
WebKitHitTestResult *hit_test_result = WEBKIT_HIT_TEST_RESULT (user_data);
gchar *uri;
GtkClipboard *clipboard;
WebKitHitTestResult *hit_test_result = WEBKIT_HIT_TEST_RESULT (user_data);
gchar *uri;
GtkClipboard *clipboard;
g_object_get (G_OBJECT (hit_test_result),
"link-uri", &uri,
......@@ -194,8 +195,8 @@ static void
empathy_webkit_open_address_cb (GtkMenuItem *menuitem,
gpointer user_data)
{
WebKitHitTestResult *hit_test_result = WEBKIT_HIT_TEST_RESULT (user_data);
gchar *uri;
WebKitHitTestResult *hit_test_result = WEBKIT_HIT_TEST_RESULT (user_data);
gchar *uri;
g_object_get (G_OBJECT (hit_test_result),
"link-uri", &uri,
......@@ -220,10 +221,10 @@ empathy_webkit_context_menu_for_event (WebKitWebView *view,
GdkEventButton *event,
EmpathyWebKitMenuFlags flags)
{
WebKitHitTestResult *hit_test_result;
WebKitHitTestResultContext context;
GtkWidget *menu;
GtkWidget *item;
WebKitHitTestResult *hit_test_result;
WebKitHitTestResultContext context;
GtkWidget *menu;
GtkWidget *item;
hit_test_result = webkit_web_view_get_hit_test_result (view, event);
g_object_get (G_OBJECT (hit_test_result),
......@@ -298,4 +299,3 @@ empathy_webkit_context_menu_for_event (WebKitWebView *view,
gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL,
event->button, event->time);
}
......@@ -31,11 +31,15 @@ typedef enum {
EMPATHY_WEBKIT_MENU_CLEAR = 1 << 0,
} EmpathyWebKitMenuFlags;
EmpathyStringParser *empathy_webkit_get_string_parser (gboolean smileys);
EmpathyStringParser * empathy_webkit_get_string_parser (gboolean smileys);
void empathy_webkit_bind_font_setting (WebKitWebView *webview,
GSettings *gsettings, const char *key);
GSettings *gsettings,
const char *key);
void empathy_webkit_context_menu_for_event (WebKitWebView *view,
GdkEventButton *event, EmpathyWebKitMenuFlags flags);
GdkEventButton *event,
EmpathyWebKitMenuFlags flags);
G_END_DECLS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment