aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-09-19 17:50:01 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-12-26 16:48:52 +0800
commit8ad4b14d78dc19c513ca82d95390e8adf58b6b1a (patch)
treeb648482566785d6ec5d1341b47e30cf8d18ab835
parent9c654275d44e7ad9a1ef8d49fc9d02bcb5a171fe (diff)
downloadgsoc2013-empathy-8ad4b14d78dc19c513ca82d95390e8adf58b6b1a.tar.gz
gsoc2013-empathy-8ad4b14d78dc19c513ca82d95390e8adf58b6b1a.tar.zst
gsoc2013-empathy-8ad4b14d78dc19c513ca82d95390e8adf58b6b1a.zip
empathy-webkit-util: coding style fixes
https://bugzilla.gnome.org/show_bug.cgi?id=684357
-rw-r--r--libempathy-gtk/empathy-webkit-utils.c22
-rw-r--r--libempathy-gtk/empathy-webkit-utils.h10
2 files changed, 18 insertions, 14 deletions
diff --git a/libempathy-gtk/empathy-webkit-utils.c b/libempathy-gtk/empathy-webkit-utils.c
index c8c585a9b..1ead8f9ee 100644
--- a/libempathy-gtk/empathy-webkit-utils.c
+++ b/libempathy-gtk/empathy-webkit-utils.c
@@ -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);
}
-
diff --git a/libempathy-gtk/empathy-webkit-utils.h b/libempathy-gtk/empathy-webkit-utils.h
index 322f94c32..fccdb0474 100644
--- a/libempathy-gtk/empathy-webkit-utils.h
+++ b/libempathy-gtk/empathy-webkit-utils.h
@@ -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