diff options
author | Christian Persch <chpe@svn.gnome.org> | 2007-03-06 03:17:20 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2007-03-06 03:17:20 +0800 |
commit | 9a2e625a9f70d5a1826a68b5c0b1f72c7971d7ad (patch) | |
tree | 3927c18ba154eeae62f5647d8ee6180c2d4ca16d | |
parent | e6102a083736dd6429f553647b1d432e11a30a44 (diff) | |
download | gsoc2013-epiphany-9a2e625a9f70d5a1826a68b5c0b1f72c7971d7ad.tar.gz gsoc2013-epiphany-9a2e625a9f70d5a1826a68b5c0b1f72c7971d7ad.tar.zst gsoc2013-epiphany-9a2e625a9f70d5a1826a68b5c0b1f72c7971d7ad.zip |
Don't use C++-style comments in C files. No code changes, only comments
2007-03-05 Christian Persch <chpe@svn.gnome.org>
* lib/ephy-password-dialog.c: (update_capslock_warning),
(ephy_password_dialog_constructor),
(ephy_password_dialog_finalize), (ephy_password_dialog_class_init):
* src/bookmarks/ephy-bookmark-action.c:
(ephy_bookmark_action_updated):
* src/ephy-cert-manager-dialog.c:
(certs_manager_dialog_remove_button_clicked_cb),
(certs_manager_dialog_finalize):
* src/ephy-find-toolbar.c: (ephy_find_toolbar_init):
* src/ephy-main.c: (unref_proxy_reply_cb):
Don't use C++-style comments in C files. No code changes, only
comments changed. Bug #414706, patch by John Millikin.
svn path=/trunk/; revision=6940
-rw-r--r-- | lib/ephy-password-dialog.c | 37 | ||||
-rw-r--r-- | src/bookmarks/ephy-bookmark-action.c | 6 | ||||
-rw-r--r-- | src/ephy-cert-manager-dialog.c | 8 | ||||
-rw-r--r-- | src/ephy-find-toolbar.c | 2 | ||||
-rw-r--r-- | src/ephy-main.c | 4 |
5 files changed, 34 insertions, 23 deletions
diff --git a/lib/ephy-password-dialog.c b/lib/ephy-password-dialog.c index 12ac55cfb..8cb0cd8ab 100644 --- a/lib/ephy-password-dialog.c +++ b/lib/ephy-password-dialog.c @@ -312,8 +312,10 @@ static void update_capslock_warning (GtkWidget *widget, gboolean show) { - //EphyPasswordDialog *dialog = EPHY_PASSWORD_DIALOG (dialog); - //EphyPasswordDialogPrivate *priv = dialog->priv; +/* + EphyPasswordDialog *dialog = EPHY_PASSWORD_DIALOG (dialog); + EphyPasswordDialogPrivate *priv = dialog->priv; +*/ g_print ("CapsLock is now %s\n", show?"on": "off"); } @@ -375,7 +377,7 @@ ephy_password_dialog_constructor (GType type, gtk_window_set_resizable (window, FALSE); gtk_box_set_spacing (GTK_BOX (dialog->vbox), 2); /* Message has 24, we want 12 = 2 + 2 * 5 */ - // gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), TRUE); + /* gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), TRUE); */ gtk_window_set_icon_name (window, EPHY_STOCK_EPHY); gtk_image_set_from_icon_name (GTK_IMAGE (message_dialog->image), @@ -384,7 +386,7 @@ ephy_password_dialog_constructor (GType type, vbox = message_dialog->label->parent; - // fixme resize later + /* fixme resize later */ table = GTK_TABLE (gtk_table_new (6, 2, FALSE)); gtk_table_set_row_spacings (table, 6); gtk_table_set_col_spacings (table, 12); @@ -461,9 +463,11 @@ ephy_password_dialog_constructor (GType type, EPHY_PASSWORD_DIALOG_FLAGS_SHOW_NEW_PASSWORD)) { priv->track_capslock = TRUE; -// gtk_table_attach (table, widget, -// 1, 2, row, row + 1, -// GTK_FILL | GTK_EXPAND, GTK_FILL, 0, 0); +/* + gtk_table_attach (table, widget, + 1, 2, row, row + 1, + GTK_FILL | GTK_EXPAND, GTK_FILL, 0, 0); +*/ } @@ -518,8 +522,10 @@ ephy_password_dialog_constructor (GType type, static void ephy_password_dialog_finalize (GObject *object) { -// EphyPasswordDialog *dialog = EPHY_PASSWORD_DIALOG (object); -// EphyPasswordDialogPrivate *priv = dialog->priv; +/* + EphyPasswordDialog *dialog = EPHY_PASSWORD_DIALOG (object); + EphyPasswordDialogPrivate *priv = dialog->priv; +*/ G_OBJECT_CLASS (ephy_password_dialog_parent_class)->finalize (object); } @@ -565,17 +571,20 @@ static void ephy_password_dialog_class_init (EphyPasswordDialogClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); -// GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); -// GtkDialogClass *dialog_class = GTK_DIALOG_CLASS (klass); +/* + GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); + GtkDialogClass *dialog_class = GTK_DIALOG_CLASS (klass); +*/ object_class->constructor = ephy_password_dialog_constructor; object_class->finalize = ephy_password_dialog_finalize; object_class->get_property = ephy_password_dialog_get_property; object_class->set_property = ephy_password_dialog_set_property; -// widget_class->key_press_event = ephy_password_dialog_key_press; - -// dialog_class->response = ephy_password_dialog_response; +/* + widget_class->key_press_event = ephy_password_dialog_key_press; + dialog_class->response = ephy_password_dialog_response; +*/ g_type_class_add_private (object_class, sizeof (EphyPasswordDialogPrivate)); diff --git a/src/bookmarks/ephy-bookmark-action.c b/src/bookmarks/ephy-bookmark-action.c index 9d14554e7..09efd132d 100644 --- a/src/bookmarks/ephy-bookmark-action.c +++ b/src/bookmarks/ephy-bookmark-action.c @@ -533,18 +533,18 @@ ephy_bookmark_action_updated (EphyBookmarkAction *action) g_object_freeze_notify (G_OBJECT (action)); - // Set smart_url + /* Set smart_url */ action->priv->smart_url = ephy_node_has_child (smart, node); g_object_notify (G_OBJECT (action), "smarturl"); - // Set title + /* Set title */ title = ephy_node_get_property_string (node, EPHY_NODE_BMK_PROP_TITLE); g_value_init (&value, G_TYPE_STRING); g_value_set_static_string (&value, title); g_object_set_property (G_OBJECT (action), "label", &value); g_value_unset (&value); - // Notify all other properties + /* Notify all other properties */ g_object_notify (G_OBJECT (action), "location"); g_object_notify (G_OBJECT (action), "tooltip"); g_object_notify (G_OBJECT (action), "icon"); diff --git a/src/ephy-cert-manager-dialog.c b/src/ephy-cert-manager-dialog.c index 07e16f6df..569e80382 100644 --- a/src/ephy-cert-manager-dialog.c +++ b/src/ephy-cert-manager-dialog.c @@ -297,7 +297,7 @@ certs_manager_dialog_remove_button_clicked_cb (GtkButton *button, cert = EPHY_X509_CERT (g_value_dup_object (&val)); g_value_unset (&val); - // TODO check return value and notify if an error ocurred + /* TODO check return value and notify if an error ocurred */ ephy_certificate_manager_remove_certificate (priv->certs_manager, cert); g_object_unref (cert); @@ -455,8 +455,10 @@ certs_manager_dialog_init (CertsManagerDialog *dialog) static void certs_manager_dialog_finalize (GObject *object) { - //CertsManagerDialog *dialog = EPHY_CERTS_MANAGER_DIALOG (object); - //CertsManagerDialogPrivate *priv = dialog->priv; +/* + CertsManagerDialog *dialog = EPHY_CERTS_MANAGER_DIALOG (object); + CertsManagerDialogPrivate *priv = dialog->priv; +*/ EphyEmbedShell *shell; /* TODO free certs in the treeviews */ diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c index 82f778a18..23bf19eeb 100644 --- a/src/ephy-find-toolbar.c +++ b/src/ephy-find-toolbar.c @@ -361,7 +361,7 @@ ephy_find_toolbar_init (EphyFindToolbar *toolbar) item = gtk_tool_item_new (); gtk_container_add (GTK_CONTAINER (item), alignment); - //gtk_tool_item_set_expand (item, TRUE); + /* gtk_tool_item_set_expand (item, TRUE); */ gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1); gtk_widget_show_all (GTK_WIDGET (item)); diff --git a/src/ephy-main.c b/src/ephy-main.c index 2e071d486..06eb47f8f 100644 --- a/src/ephy-main.c +++ b/src/ephy-main.c @@ -60,7 +60,7 @@ static GQuark startup_error_quark = 0; static gboolean open_in_new_tab = FALSE; static gboolean open_in_new_window = FALSE; static gboolean open_as_bookmarks_editor = FALSE; -//static gboolean reload_plugins = FALSE; +/*static gboolean reload_plugins = FALSE;*/ static char *session_filename = NULL; static char *bookmark_url = NULL; @@ -228,7 +228,7 @@ unref_proxy_reply_cb (DBusGProxy *proxy, if (error != NULL) { g_warning ("An error occured while calling remote method: %s", error->message); - g_error_free (error);// FIXME??? + g_error_free (error);/* FIXME??? */ } g_object_unref (proxy); |