[kazehakase-svn] [3847] cosmetic fix.

Back to archive index

svnno****@sourc***** svnno****@sourc*****
Tue Sep 15 12:36:52 JST 2009


Revision: 3847
          http://sourceforge.jp/projects/kazehakase/svn/view?view=rev&revision=3847
Author:   ikezoe
Date:     2009-09-15 12:36:52 +0900 (Tue, 15 Sep 2009)

Log Message:
-----------
cosmetic fix.

Modified Paths:
--------------
    kazehakase/trunk/src/actions/kz-actions.c
    kazehakase/trunk/src/kz-web.c

Modified: kazehakase/trunk/src/actions/kz-actions.c
===================================================================
--- kazehakase/trunk/src/actions/kz-actions.c	2009-09-11 03:57:55 UTC (rev 3846)
+++ kazehakase/trunk/src/actions/kz-actions.c	2009-09-15 03:36:52 UTC (rev 3847)
@@ -589,7 +589,7 @@
 	g_return_if_fail(KZ_IS_WINDOW (kz));
 
 	widget = kz_prefs_win_get_instance();
-	gtk_window_set_transient_for (GTK_WINDOW(widget), GTK_WINDOW(kz));
+	gtk_window_set_transient_for(GTK_WINDOW(widget), GTK_WINDOW(kz));
 	gtk_widget_show (widget);
 	gdk_window_raise(widget->window);
 }
@@ -646,9 +646,9 @@
 
 	widget = gtk_window_get_focus(GTK_WINDOW(kz));
 
-        if (GTK_IS_EDITABLE (widget))
+        if (GTK_IS_EDITABLE(widget))
         {
-                gtk_editable_cut_clipboard (GTK_EDITABLE (widget));
+                gtk_editable_cut_clipboard(GTK_EDITABLE(widget));
         }
         else
         {
@@ -671,9 +671,9 @@
 
 	widget = gtk_window_get_focus(GTK_WINDOW(kz));
 
-        if (GTK_IS_EDITABLE (widget))
+        if (GTK_IS_EDITABLE(widget))
         {
-                gtk_editable_copy_clipboard (GTK_EDITABLE (widget));
+                gtk_editable_copy_clipboard(GTK_EDITABLE(widget));
         }
         else
         {
@@ -696,9 +696,9 @@
 
 	widget = gtk_window_get_focus(GTK_WINDOW(kz));
 
-        if (GTK_IS_EDITABLE (widget))
+        if (GTK_IS_EDITABLE(widget))
         {
-                gtk_editable_paste_clipboard (GTK_EDITABLE (widget));
+                gtk_editable_paste_clipboard(GTK_EDITABLE(widget));
         }
         else
         {
@@ -722,9 +722,9 @@
 
 	widget = gtk_window_get_focus(GTK_WINDOW(kz));
 
-        if (GTK_IS_EDITABLE (widget))
+        if (GTK_IS_EDITABLE(widget))
         {
-                gtk_editable_select_region (GTK_EDITABLE (widget), 0, -1);
+                gtk_editable_select_region(GTK_EDITABLE(widget), 0, -1);
         }
         else
         {
@@ -1123,7 +1123,7 @@
 
 	widget = kz_bookmark_editor_new(bookmark);
 	gtk_window_set_transient_for(GTK_WINDOW(widget), GTK_WINDOW(kz));
-	gtk_widget_show (widget);
+	gtk_widget_show(widget);
 	gdk_window_raise(widget->window);
 }
 
@@ -1141,7 +1141,7 @@
 
 	widget = kz_bookmark_editor_new(bookmark);
 	gtk_window_set_transient_for(GTK_WINDOW(widget), GTK_WINDOW(kz));
-	gtk_widget_show (widget);
+	gtk_widget_show(widget);
 	gdk_window_raise(widget->window);
 }
 

Modified: kazehakase/trunk/src/kz-web.c
===================================================================
--- kazehakase/trunk/src/kz-web.c	2009-09-11 03:57:55 UTC (rev 3846)
+++ kazehakase/trunk/src/kz-web.c	2009-09-15 03:36:52 UTC (rev 3847)
@@ -603,8 +603,7 @@
 {
     KzWebPrivate *priv = KZ_WEB_GET_PRIVATE(object);
 
-    switch (prop_id)
-    {
+    switch (prop_id) {
     case PROP_MODULE_NAME:
         priv->module_name = g_value_dup_string(value);
         break;
@@ -629,8 +628,7 @@
 {
     KzWebPrivate *priv = KZ_WEB_GET_PRIVATE(object);
 
-    switch (prop_id)
-    {
+    switch (prop_id) {
     case PROP_MODULE_NAME:
         g_value_set_string(value, priv->module_name);
         break;
@@ -658,8 +656,7 @@
 
     requisition->height = GTK_CONTAINER(widget)->border_width;
 
-    if (child && GTK_WIDGET_VISIBLE(child))
-    {
+    if (child && GTK_WIDGET_VISIBLE(child)) {
         gtk_widget_size_request(child, &child_requisition);
         requisition->width += child_requisition.width;
         requisition->height += child_requisition.height;
@@ -676,13 +673,10 @@
         return;
     widget->allocation = *allocation;
 
-    if (GTK_WIDGET_NO_WINDOW(widget))
-    {
+    if (GTK_WIDGET_NO_WINDOW(widget)) {
         child_allocation.x = allocation->x + GTK_CONTAINER(widget)->border_width;
         child_allocation.y = allocation->y + GTK_CONTAINER(widget)->border_width;
-    }
-    else
-    {
+    } else {
         child_allocation.x = 0;
         child_allocation.y = 0;
     }
@@ -798,8 +792,7 @@
     if (priv->title)
         return g_strdup(priv->title);
 
-    if (priv->location && strlen(priv->location) != 0)
-    {
+    if (priv->location && strlen(priv->location) != 0) {
         if (priv->is_loading)
             return g_strdup_printf(_("Loading %s ..."), priv->location);
         else




More information about the Kazehakase-cvs mailing list
Back to archive index