]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-chat-view.c
Updated Polish translation
[empathy.git] / libempathy-gtk / empathy-chat-view.c
index 23877a27520c9ccd99631638a2d9c44a201ca9b5..ada66988522a6bd2f92dc4ab168c6b9d2d0483c7 100644 (file)
@@ -14,9 +14,9 @@
  *
  * You should have received a copy of the GNU General Public
  * License along with this program; if not, write to the
- * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- * Boston, MA 02111-1307, USA.
- * 
+ * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+ * Boston, MA  02110-1301  USA
+ *
  * Authors: Xavier Claessens <xclaesse@gmail.com>
  */
 
@@ -31,21 +31,21 @@ GType
 empathy_chat_view_get_type (void)
 {
        static GType type = 0;
-       
+
        if (!type) {
                static const GTypeInfo type_info = {
                        sizeof (EmpathyChatViewIface),
                        chat_view_base_init,
                        NULL,
                };
-               
+
                type = g_type_register_static (G_TYPE_INTERFACE,
                                               "EmpathyChatView",
                                               &type_info, 0);
-               
+
                g_type_interface_add_prerequisite (type, GTK_TYPE_WIDGET);
        }
-       
+
        return type;
 }
 
@@ -53,7 +53,7 @@ static void
 chat_view_base_init (gpointer klass)
 {
        static gboolean initialized = FALSE;
-       
+
        if (!initialized) {
                initialized = TRUE;
        }
@@ -64,9 +64,9 @@ empathy_chat_view_append_message (EmpathyChatView *view,
                                  EmpathyMessage  *msg)
 {
        g_return_if_fail (EMPATHY_IS_CHAT_VIEW (view));
-       
+
        if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->append_message) {
-               EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->append_message (view, 
+               EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->append_message (view,
                                                                         msg);
        }
 }
@@ -76,7 +76,7 @@ empathy_chat_view_append_event (EmpathyChatView *view,
                                const gchar    *str)
 {
        g_return_if_fail (EMPATHY_IS_CHAT_VIEW (view));
-       
+
        if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->append_event) {
                EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->append_event (view,
                                                                       str);
@@ -88,9 +88,9 @@ empathy_chat_view_scroll (EmpathyChatView *view,
                          gboolean        allow_scrolling)
 {
        g_return_if_fail (EMPATHY_IS_CHAT_VIEW (view));
-       
+
        if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->scroll) {
-               EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->scroll (view, 
+               EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->scroll (view,
                                                                 allow_scrolling);
        }
 }
@@ -99,7 +99,7 @@ void
 empathy_chat_view_scroll_down (EmpathyChatView *view)
 {
        g_return_if_fail (EMPATHY_IS_CHAT_VIEW (view));
-       
+
        if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->scroll_down) {
                EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->scroll_down (view);
        }
@@ -109,7 +109,7 @@ gboolean
 empathy_chat_view_get_has_selection (EmpathyChatView *view)
 {
        g_return_val_if_fail (EMPATHY_IS_CHAT_VIEW (view), FALSE);
-       
+
        if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->get_has_selection) {
                return EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->get_has_selection (view);
        }
@@ -120,7 +120,7 @@ void
 empathy_chat_view_clear (EmpathyChatView *view)
 {
        g_return_if_fail (EMPATHY_IS_CHAT_VIEW (view));
-       
+
        if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->clear) {
                EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->clear (view);
        }
@@ -129,14 +129,16 @@ empathy_chat_view_clear (EmpathyChatView *view)
 gboolean
 empathy_chat_view_find_previous (EmpathyChatView *view,
                                 const gchar    *search_criteria,
-                                gboolean        new_search)
+                                gboolean        new_search,
+                                gboolean        match_case)
 {
        g_return_val_if_fail (EMPATHY_IS_CHAT_VIEW (view), FALSE);
-       
+
        if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->find_previous) {
-               return EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->find_previous (view, 
-                                                                              search_criteria, 
-                                                                              new_search);
+               return EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->find_previous (view,
+                                                                              search_criteria,
+                                                                              new_search,
+                                                                              match_case);
        }
        return FALSE;
 }
@@ -144,14 +146,16 @@ empathy_chat_view_find_previous (EmpathyChatView *view,
 gboolean
 empathy_chat_view_find_next (EmpathyChatView *view,
                             const gchar    *search_criteria,
-                            gboolean        new_search)
+                            gboolean        new_search,
+                            gboolean        match_case)
 {
        g_return_val_if_fail (EMPATHY_IS_CHAT_VIEW (view), FALSE);
-       
+
        if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->find_next) {
-               return EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->find_next (view, 
-                                                                          search_criteria, 
-                                                                          new_search);
+               return EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->find_next (view,
+                                                                          search_criteria,
+                                                                          new_search,
+                                                                          match_case);
        }
        return FALSE;
 }
@@ -160,27 +164,30 @@ empathy_chat_view_find_next (EmpathyChatView *view,
 void
 empathy_chat_view_find_abilities (EmpathyChatView *view,
                                  const gchar    *search_criteria,
+                                 gboolean        match_case,
                                  gboolean       *can_do_previous,
                                  gboolean       *can_do_next)
 {
        g_return_if_fail (EMPATHY_IS_CHAT_VIEW (view));
-       
+
        if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->find_abilities) {
-               EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->find_abilities (view, 
-                                                                        search_criteria, 
-                                                                        can_do_previous, 
+               EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->find_abilities (view,
+                                                                        search_criteria,
+                                                                        match_case,
+                                                                        can_do_previous,
                                                                         can_do_next);
        }
 }
 
 void
 empathy_chat_view_highlight (EmpathyChatView *view,
-                            const gchar     *text)
+                            const gchar     *text,
+                            gboolean         match_case)
 {
        g_return_if_fail (EMPATHY_IS_CHAT_VIEW (view));
-       
+
        if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->highlight) {
-               EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->highlight (view, text);
+               EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->highlight (view, text, match_case);
        }
 }
 
@@ -188,7 +195,7 @@ void
 empathy_chat_view_copy_clipboard (EmpathyChatView *view)
 {
        g_return_if_fail (EMPATHY_IS_CHAT_VIEW (view));
-       
+
        if (EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->copy_clipboard) {
                EMPATHY_TYPE_CHAT_VIEW_GET_IFACE (view)->copy_clipboard (view);
        }